mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2929: Pessimistic lock on Query does not update the entity with the DB values if it's already cached #3646
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?
Originally created by @doctrinebot on GitHub (Jan 22, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user nail:
When asking for a pessimistic lock through a Query object, the entities already in the cache are not refreshed with the latest values from the database (unless you set the
Query::HINT_REFRESHhint)Example:
This is similar to DDC-1846
(Tested on 2.4.0 and 2.4.1)
@doctrinebot commented on GitHub (Jan 22, 2014):
@lasekio commented on GitHub (May 14, 2016):
Are you guys interested about fix this? It is serious bug, which caused domain inconsistency in my application.