X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/5305ca069746c39ab9271fdf4ee9e14287237c21..7bd5dff399fc53ee52f78a410168916abca32447:/Entity/Group.php 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')); }