From f62ca5c7b8b94a2c207107bf7c691cea5ab12914 Mon Sep 17 00:00:00 2001 From: Eytan <101130926+eytanProxi@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:47:52 +0200 Subject: [PATCH 1/3] [Loggable] Support embeddable xml mapping --- src/Loggable/Mapping/Driver/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Loggable/Mapping/Driver/Xml.php b/src/Loggable/Mapping/Driver/Xml.php index 9516c1e28e..da05e3fafc 100644 --- a/src/Loggable/Mapping/Driver/Xml.php +++ b/src/Loggable/Mapping/Driver/Xml.php @@ -38,7 +38,7 @@ public function readExtendedMetadata($meta, array &$config) $xml = $xml->children(self::GEDMO_NAMESPACE_URI); - if (in_array($xmlDoctrine->getName(), ['mapped-superclass', 'entity', 'document'], true)) { + if (in_array($xmlDoctrine->getName(), ['mapped-superclass', 'entity', 'document', 'embeddable'], true)) { if (isset($xml->loggable)) { /** * @var \SimpleXMLElement; From 87eacd13539ba3bf7dc23b537a8a6ce20b394762 Mon Sep 17 00:00:00 2001 From: Eytan <101130926+eytanProxi@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:48:58 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea079941e4..b16e871263 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ a release. --- ## [Unreleased] +### Added +- Loggable: Support embeddable xml mapping ## [3.16.1] ### Fixed From af7c7e72a656ba7185f98899e49cfdf0be69665e Mon Sep 17 00:00:00 2001 From: Eytan <101130926+eytanProxi@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:53:10 +0200 Subject: [PATCH 3/3] [Loggable] Support embedded document xml mapping Co-authored-by: Michael Babker --- src/Loggable/Mapping/Driver/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Loggable/Mapping/Driver/Xml.php b/src/Loggable/Mapping/Driver/Xml.php index da05e3fafc..c23d68bae2 100644 --- a/src/Loggable/Mapping/Driver/Xml.php +++ b/src/Loggable/Mapping/Driver/Xml.php @@ -38,7 +38,7 @@ public function readExtendedMetadata($meta, array &$config) $xml = $xml->children(self::GEDMO_NAMESPACE_URI); - if (in_array($xmlDoctrine->getName(), ['mapped-superclass', 'entity', 'document', 'embeddable'], true)) { + if (in_array($xmlDoctrine->getName(), ['mapped-superclass', 'entity', 'document', 'embeddable', 'embedded-document'], true)) { if (isset($xml->loggable)) { /** * @var \SimpleXMLElement;