Browse Source

typo

The hook that is called when password or username is updated in FOSUserBundle is preUpdate.
Quentin Pleplé 14 years ago
parent
commit
b1f5905798
1 changed files with 1 additions and 1 deletions
  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'
             'groups'
         );
         );
 
 
-        public function prePersist($user)
+        public function preUpdate($user)
         {
         {
             $this->getUserManager()->updateCanonicalFields($user);
             $this->getUserManager()->updateCanonicalFields($user);
             $this->getUserManager()->updatePassword($user);
             $this->getUserManager()->updatePassword($user);