Skip to content

Commit

Permalink
Merge pull request #449 from mbabker/update-em-call
Browse files Browse the repository at this point in the history
Replace call to deprecated `LifecycleEventArgs::getEntityManager()`
  • Loading branch information
greg0ire authored Aug 17, 2023
2 parents 30308af + 5a2e219 commit ae4e845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event/Listener/ORMReferenceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function postPersist(LifecycleEventArgs $args)
}

foreach ($names as $name) {
$identity = $args->getEntityManager()
$identity = $args->getObjectManager()
->getUnitOfWork()
->getEntityIdentifier($object);

Expand Down

0 comments on commit ae4e845

Please sign in to comment.