diff --git a/security/password_migration.rst b/security/password_migration.rst index 9553d46de5a..bb77a0504ab 100644 --- a/security/password_migration.rst +++ b/security/password_migration.rst @@ -190,7 +190,7 @@ storing the newly created password hash:: $user->setPassword($newEncodedPassword); // execute the queries on the database - $this->getEntityManager()->flush($user); + $this->getEntityManager()->flush(); } }