X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/4410d36adc12ea31e92ae01163fd4d69238d501a..c9dfa6d8941bcd0dedf0f938c53d86fa7b59e4ae:/Entity/Civility.php 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')); }