DDC-1578: Two different partial queries executed consecutively => same result #1978

Closed
opened 2026-01-22 13:35:25 +01:00 by admin · 3 comments
Owner

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.

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.
admin added the Bug label 2026-01-22 13:35:25 +01:00
admin closed this issue 2026-01-22 13:35:29 +01:00
Author
Owner

@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 (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.
Author
Owner

@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): Comment created by @beberlei: Closed as no feedback given + documented behavior.
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Issue was closed with resolution "Incomplete"

@doctrinebot commented on GitHub (Mar 14, 2012): Issue was closed with resolution "Incomplete"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1978