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