[PR #1505] Fixed issue with entity manager when using LockMode::NONE #9563

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

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

State: closed
Merged: Yes


There is an issue in the Entity Manager find method when using LockMode::None, it currently forces to open a transaction only when the entity is not "cached" by the unitOfWork. I'm not sure why is the code forcing to start the transaction for a read with no lock mode, it's causing complex problems when using doctrine with concurrency and deamon processes at the same time. I can provide specific examples of when it's causing problems if required.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1505 **State:** closed **Merged:** Yes --- There is an issue in the Entity Manager find method when using LockMode::None, it currently forces to open a transaction only when the entity is not "cached" by the unitOfWork. I'm not sure why is the code forcing to start the transaction for a read with no lock mode, it's causing complex problems when using doctrine with concurrency and deamon processes at the same time. I can provide specific examples of when it's causing problems if required.
admin added the pull-request label 2026-01-22 16:04:42 +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#9563