mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1531] fixed outdated entity #9589
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/1531
State: closed
Merged: No
I found an issue with outdated entities. If you have following code which will be called by your request:
This will happen:
bar)Since we have a write lock inside of a transaction I expect to have 32. The entity is not up to date and has do be refreshed. If you use the
EntityRepository::find()method with the write lock it works fine. It only occurs if you add the lock afterwards.