From 87ba6f6fd953bbf8faabe42cfb9964135f60bddc Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Fri, 8 Sep 2023 10:33:23 -0600 Subject: [PATCH] Update TranslatableEventSubscriber.php getEntity is deprecated, use getObject() --- src/EventSubscriber/TranslatableEventSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }