mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1842: [GH-359] Hydrator hotfix - parent object association #2320
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 (May 27, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of splitin2:
Url: https://github.com/doctrine/doctrine2/pull/359
Message:
Found that using a mixed sql and more than 2 entities the hydrator skips one related association and inserts the third related entity wrongly.
In the case below "c" will be inserted into "a"
SELECT SUM(a.sold) as total, a, b, c FROM Entity\A a LEFT JOIN a.test1 b LEFT JOIN b.test2 c GROUP BY a.idOn a later flush call this will result in ORM\Exception