[PR #7075] Fix for #7068: EntityManager::find() with pessimistic lock should check for transaction #10303

Closed
opened 2026-01-22 16:07:07 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


Fix for #7068

I put the checks earlier in the method, that fixes the bug and is also a better practice in my opinion.

Also it is somehow hinted by the CONTRIBUTING.md guidelines:

  • Prefer early exit over nesting conditions
**Original Pull Request:** https://github.com/doctrine/orm/pull/7075 **State:** closed **Merged:** Yes --- Fix for #7068 I put the checks earlier in the method, that fixes the bug and is also a better practice in my opinion. Also it is somehow hinted by the CONTRIBUTING.md guidelines: > * Prefer early exit over nesting conditions
admin added the pull-request label 2026-01-22 16:07:07 +01:00
admin closed this issue 2026-01-22 16:07:07 +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#10303