[DDC-1514] Invalid hydration on multiple joins cross the same table Created: 29/Nov/11  Updated: 15/Dec/11  Resolved: 15/Dec/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.1.3, 2.1.4, 2.1.5
Fix Version/s: 2.1.5
Security Level: All

Type: Bug Priority: Major
Reporter: Piotr Śliwa Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None

Attachments: File DDC1514Test.php    

 Description   

Simillar issue to DDC-1452. Somtime (yes, this bug is not easy to reproduce...) when you fetch objects with multiple join cross the same table (as in DDC-1452 issue), some joins are ignored and multiple queries are necessary to lazy load relations.

I will attach falling test case soon.



 Comments   
Comment by Piotr Śliwa [ 29/Nov/11 ]

Falling test case.

Comment by Benjamin Eberlei [ 15/Dec/11 ]

Verified and i know why it happens.

The entities ba are created before c's are created. That is why doctrine sees a proxy already and then does not fill it with the data.

Comment by Benjamin Eberlei [ 15/Dec/11 ]

Fixed.

Generated at Wed Apr 23 11:36:18 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.