mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-371: Some associations not included in a HINT_REFRESH joined query are selected afterwards #463
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 (Feb 25, 2010).
Jira issue originally created by user reinier.kip:
See http://groups.google.com/group/doctrine-user/browse_thread/thread/c711e742b860da9a/45ce810779b838d3
Some associations not included in a HINT_REFRESH joined query are selected afterwards, but their collections are not initialised. When selecting a child and its parent, the parents children are also selected afterwards (thus resulting in two queries), yet the associated collection is not initialised. The first issue here is that the children are selected even though I don't ask for them. If this, however, is expected behaviour in HINT_REFRESH joined queries, another issue is that the collection is not initialised. This can best be demonstrated using an example:
This results in a child with a parent, a parent with an uninitialised children collection and these queries:
Expected behaviour:
@doctrinebot commented on GitHub (Feb 27, 2010):
Comment created by romanb:
Should be fixed now.
@doctrinebot commented on GitHub (Feb 27, 2010):
Issue was closed with resolution "Fixed"