]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Entity/User.php
Rename user bundle alias
[userbundle] / Entity / User.php
index 68b0dcf1ee1d6baf1f8ccb3e8f6391970ac7a61e..7d15a367f358f08e7c44f83daba7af4b14b6e159 100644 (file)
@@ -432,7 +432,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have an user instance
-               if (($user = $eventArgs->getEntity()) instanceof User) {
+               if (($user = $eventArgs->getObject()) instanceof User) {
                        //Set updated value
                        $user->setUpdated(new \DateTime('now'));
                }