Explorar o código

typo

The hook that is called when password or username is updated in FOSUserBundle is preUpdate.
Quentin Pleplé %!s(int64=14) %!d(string=hai) anos
pai
achega
b1f5905798
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Resources/doc/reference/saving_hooks.rst

+ 1 - 1
Resources/doc/reference/saving_hooks.rst

@@ -42,7 +42,7 @@ is how the Admin bundle can be used to solve the issue by using the ``prePersist
             'groups'
         );
 
-        public function prePersist($user)
+        public function preUpdate($user)
         {
             $this->getUserManager()->updateCanonicalFields($user);
             $this->getUserManager()->updatePassword($user);