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