From 0fdf6036b3767e943c8d8c0d014740ce3a8939cf Mon Sep 17 00:00:00 2001 From: Mikel Date: Thu, 1 Dec 2022 12:40:16 +0100 Subject: [PATCH] do not duplicate initChangelog calls --- .../Domain/Service/Lifecycle/DoctrineEventSubscriber.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Infrastructure/Domain/Service/Lifecycle/DoctrineEventSubscriber.php b/Infrastructure/Domain/Service/Lifecycle/DoctrineEventSubscriber.php index e738ee0..4771d33 100755 --- a/Infrastructure/Domain/Service/Lifecycle/DoctrineEventSubscriber.php +++ b/Infrastructure/Domain/Service/Lifecycle/DoctrineEventSubscriber.php @@ -82,7 +82,9 @@ public function onHydratorComplete(LifecycleEventArgs $args) return; } - $object->initChangelog(); + if (!$object->isInitialized()) { + $object->initChangelog(); + } } public function onSchemaColumnDefinition(SchemaColumnDefinitionEventArgs $args)