You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($repositoryinstanceof UserProviderInterface) {
84
84
$refreshedUser = $repository->refreshUser($user);
85
85
} else {
86
86
// The user must be reloaded via the primary key as all other data
87
87
// might have changed without proper persistence in the database.
88
88
// That's the case when the user has been changed by a form with
89
89
// validation errors.
90
-
if (!$id = $this->registry->getManager($this->managerName)->getClassMetadata($this->classOrAlias)->getIdentifierValues($user)) {
90
+
if (!$id = $this->getClassMetadata()->getIdentifierValues($user)) {
91
91
thrownew \InvalidArgumentException('You cannot refresh a user from the EntityUserProvider that does not contain an identifier. The user object has to be serialized with its own identifier mapped by Doctrine.');
92
92
}
93
93
@@ -118,24 +118,39 @@ public function upgradePassword(UserInterface $user, string $newEncodedPassword)
118
118
thrownewUnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
0 commit comments