]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Entity/Group.php
Use getObject event args member function instead of deprecated getEntity
[userbundle] / Entity / Group.php
index 901fbc64d82897989cad5722861d93b161020ee9..aa60f77e0f9e48c3a77a1a42f6aa154b53e89806 100644 (file)
@@ -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'));
                }