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