Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
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"
<code>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.id</code>
On a later flush call this will result in ORM\Exception
<pre>
Found entity of type Entity\A on association Entity\C#test2, but expecting Entity\B
</pre>
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Invalid [ 6 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 13736 ] | jira-feedback [ 15361 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 15361 ] | jira-feedback2 [ 17225 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 17225 ] | jira-feedback3 [ 19480 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1842, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
A related Github Pull-Request [GH-359] was closed
https://github.com/doctrine/doctrine2/pull/359