Skip to content

Commit 44fa8bb

Browse files
authored
Merge pull request #11344 from d-ph/patch-2
Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article.
2 parents 05f5486 + 0a49274 commit 44fa8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/cookbook/aggregate-fields.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ the database using a FOR UPDATE.
352352
use Bank\Entities\Account;
353353
use Doctrine\DBAL\LockMode;
354354
355-
$account = $em->find(Account::class, $accId, LockMode::PESSIMISTIC_READ);
355+
$account = $em->find(Account::class, $accId, LockMode::PESSIMISTIC_WRITE);
356356
357357
Keeping Updates and Deletes in Sync
358358
-----------------------------------

0 commit comments

Comments
 (0)