mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1578: Two different partial queries executed consecutively => same result #1978
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 4, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user solzenic:
When two different partial selects from one entity are executed consecutively, the result is same. (from first).
Example. In the first query only ids are selected, then for each id another partial query with more fields is executed. But only id is returned. I use $em->clear() for now.
@doctrinebot commented on GitHub (Jan 9, 2012):
Comment created by @beberlei:
What would the behavior you expect?
The documentation discusses this in another context, http://www.doctrine-project.org/docs/orm/2.1/en/reference/partial-objects.html (See second notice box).
The problem here is that its too expensive to check inside the UnitOfWork if the submitted data yields a partial object that has more data than the currently known object.
@doctrinebot commented on GitHub (Mar 14, 2012):
Comment created by @beberlei:
Closed as no feedback given + documented behavior.
@doctrinebot commented on GitHub (Mar 14, 2012):
Issue was closed with resolution "Incomplete"