mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2536: AbstractQuery::setFetchMode not working as expected #3181
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 (Jul 1, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user hosiplan:
Let's have theese entities
Now let's have a query
The query is ok, data is ok, BUT. This generates an awful amount of queries. I would expect 5 at most (1 count, 1 data fetch, 3 for eagers).
And no, I don't want to join more table in one query, because that's awfully unefective and makes me transfer too much data repeatedly (order every orderItem and again for every addition).
It seems to be working partially. It fetches all OrderItemAddition in one query, but not those joined to them (Addition entity).
I believe this should generate one query for every entity type as I specified, not one for each row.
I also believe, you've already had talk with author of NotORM (now you probably know exactly where this is heading).
@doctrinebot commented on GitHub (Jul 1, 2013):
Comment created by @beberlei:
eager fetching across entities is not yet implemented for collections. Its still deep in my mind somewhere that this needs to be done :-)
@doctrinebot commented on GitHub (Jul 1, 2013):
Comment created by hosiplan:
Ofcourse I found it right after I wrote this one :)
@doctrinebot commented on GitHub (Jul 1, 2013):
Comment created by hosiplan:
DDC-1149
@doctrinebot commented on GitHub (Jul 1, 2013):
Issue was closed with resolution "Duplicate"