mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2155: problem with DQL and cache #2711
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 (Nov 18, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user gabrielnn77:
I have a problem when I get database records through a query DQL
and then they are changed by another application
If I repeat the query, Doctrine always return the first value, not the current value of the base
I run this code in a terminal, and then edit the registry (field text), but the terminal still shows the same result
@doctrinebot commented on GitHub (Nov 25, 2012):
Comment created by @beberlei:
Doctrine uses an IdentityMap pattern which leads to this issue.
You need to call "EntityManager#clear()" to clean the in memory cache of Doctrine and fetch records from the database again. or call "EntityManager#refresh($entity)"
@doctrinebot commented on GitHub (Nov 25, 2012):
Issue was closed with resolution "Invalid"