DDC-3897: [GH-1505] Fixed issue with entity manager when using LockMode::NONE #4769

Closed
opened 2026-01-22 14:49:00 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 7, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of qu1m:

Url: https://github.com/doctrine/doctrine2/pull/1505

Message:

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.

Originally created by @doctrinebot on GitHub (Sep 7, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of qu1m: Url: https://github.com/doctrine/doctrine2/pull/1505 Message: 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 Bug label 2026-01-22 14:49:00 +01:00
admin closed this issue 2026-01-22 14:49:00 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 8, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1505] was assigned:
https://github.com/doctrine/doctrine2/pull/1505

@doctrinebot commented on GitHub (Nov 8, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1505] was assigned: https://github.com/doctrine/doctrine2/pull/1505
Author
Owner

@doctrinebot commented on GitHub (Nov 8, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1505] was merged:
https://github.com/doctrine/doctrine2/pull/1505

@doctrinebot commented on GitHub (Nov 8, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1505] was merged: https://github.com/doctrine/doctrine2/pull/1505
Author
Owner

@doctrinebot commented on GitHub (Nov 8, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 8, 2015): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4769