Skip to content

Commit

Permalink
Merge pull request #11344 from d-ph/patch-2
Browse files Browse the repository at this point in the history
Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article.
  • Loading branch information
greg0ire authored Oct 24, 2024
2 parents 05f5486 + 0a49274 commit 44fa8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/cookbook/aggregate-fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ the database using a FOR UPDATE.
use Bank\Entities\Account;
use Doctrine\DBAL\LockMode;
$account = $em->find(Account::class, $accId, LockMode::PESSIMISTIC_READ);
$account = $em->find(Account::class, $accId, LockMode::PESSIMISTIC_WRITE);
Keeping Updates and Deletes in Sync
-----------------------------------
Expand Down

0 comments on commit 44fa8bb

Please sign in to comment.