Skip to content

Commit 921636d

Browse files
diimppfranmomu
authored andcommitted
Allow to specify Loggable in attribute-override for xml driver
1 parent 1cfadc7 commit 921636d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ a release.
1919
---
2020

2121
## [Unreleased]
22+
### Fixed
23+
- Loggable: Missing support for `versioned` fields at `attribute-override` in XML mapping.
2224

2325
## [3.3.0] - 2021-11-15
2426
### Added

src/Loggable/Mapping/Driver/Xml.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function readExtendedMetadata($meta, array &$config)
5151
if (isset($xmlDoctrine->field)) {
5252
$this->inspectElementForVersioned($xmlDoctrine->field, $config, $meta);
5353
}
54+
foreach ($xmlDoctrine->{'attribute-overrides'}->{'attribute-override'} ?? [] as $overrideMapping) {
55+
$this->inspectElementForVersioned($overrideMapping, $config, $meta);
56+
}
5457
if (isset($xmlDoctrine->{'many-to-one'})) {
5558
$this->inspectElementForVersioned($xmlDoctrine->{'many-to-one'}, $config, $meta);
5659
}

0 commit comments

Comments
 (0)