[PR #11311] Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article. #12933

Open
opened 2026-01-22 16:15:38 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11311

State: closed
Merged: No


Change PESSIMISTIC_READ to PESSIMISTIC_WRITE because otherwise the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem.

Please correct me if I'm wrong because I might be.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11311 **State:** closed **Merged:** No --- Change `PESSIMISTIC_READ` to `PESSIMISTIC_WRITE` because otherwise the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem. Please correct me if I'm wrong because I might be.
admin added the pull-request label 2026-01-22 16:15:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12933