diff --git a/src/EventSubscriber/TranslatableEventSubscriber.php b/src/EventSubscriber/TranslatableEventSubscriber.php index 2df494de..e8cb6968 100644 --- a/src/EventSubscriber/TranslatableEventSubscriber.php +++ b/src/EventSubscriber/TranslatableEventSubscriber.php @@ -161,7 +161,7 @@ private function mapTranslation(ClassMetadataInfo $classMetadataInfo, ObjectMana private function setLocales(LifecycleEventArgs $lifecycleEventArgs): void { - $entity = $lifecycleEventArgs->getEntity(); + $entity = $lifecycleEventArgs->getObject(); if (! $entity instanceof TranslatableInterface) { return; }