X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/36ebf250be87fc879c8718a4f37a1a57e82121d8..c9dfa6d8941bcd0dedf0f938c53d86fa7b59e4ae:/Entity/Civility.php?ds=inline diff --git a/Entity/Civility.php b/Entity/Civility.php index 9ec56e9..ea8b95b 100644 --- a/Entity/Civility.php +++ b/Entity/Civility.php @@ -169,7 +169,7 @@ class Civility { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a civility instance - if (($user = $eventArgs->getEntity()) instanceof Civility) { + if (($user = $eventArgs->getObject()) instanceof Civility) { //Set updated value $user->setUpdated(new \DateTime('now')); }