Skip to content

Commit 7df0a69

Browse files
committed
Doctrine Repo fixed
1 parent cec4802 commit 7df0a69

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"php": "^8.2",
66
"ext-ctype": "*",
77
"ext-iconv": "*",
8-
"doctrine/dbal": "^3",
98
"composer/package-versions-deprecated": "^1.10",
9+
"doctrine/dbal": "^3",
1010
"doctrine/doctrine-bundle": "^2.14",
1111
"doctrine/doctrine-migrations-bundle": "^3.4",
1212
"doctrine/orm": "^3.3",
13+
"firebase/php-jwt": "^6.9",
1314
"phpdocumentor/reflection-docblock": "^5.6",
1415
"phpstan/phpdoc-parser": "^2.1",
15-
"firebase/php-jwt": "^6.9",
1616
"symfony/asset": "7.2.*",
1717
"symfony/console": "7.2.*",
1818
"symfony/dotenv": "7.2.*",
@@ -28,6 +28,7 @@
2828
"symfony/process": "7.2.*",
2929
"symfony/property-access": "7.2.*",
3030
"symfony/property-info": "7.2.*",
31+
"symfony/rate-limiter": "7.2.*",
3132
"symfony/security-bundle": "7.2.*",
3233
"symfony/serializer": "7.2.*",
3334
"symfony/string": "7.2.*",

src/Persistence/Repository/UserRepository.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string
3333
}
3434

3535
$user->setPassword($newEncodedPassword);
36-
$this->_em->persist($user);
37-
$this->_em->flush();
36+
$this->getEntityManager()->persist($user);
37+
$this->getEntityManager()->flush();
3838
}
3939

4040
public function save(User $user): User
4141
{
42-
$this->_em->persist($user);
43-
$this->_em->flush();
42+
$this->getEntityManager()->persist($user);
43+
$this->getEntityManager()->flush();
4444

4545
return $user;
4646
}

translations/messages+intl-icu.en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ password:
1212
send_email_btn: Send password reset email
1313
reset_password_error: There was a problem validating your reset request - {reason}
1414
no_token_found: No reset password token found in the URL or in the session.
15+
too_many_requests: Too many requests, please try again later.
1516

1617
user:
1718
profile_updated: Profile successfully updated
1819
registration_successful: Registration completed successfully
19-

0 commit comments

Comments
 (0)