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