[DDC-2006] one2many to self inverts table aliasses and creates wrong db query Created: 31/Aug/12 Updated: 04/May/13 Resolved: 04/May/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Xavier Dekeyster||Assignee:||Benjamin Eberlei|
Debian VM, MySQL, Zend-Framework
|Attachments:||Screen Shot 2012-08-31 at 14.31.21.png|
See attachment for description.
|Comment by Fabio B. Silva [ 06/Apr/13 ]|
Could you past your entities and mappings please ?
|Comment by Benjamin Eberlei [ 14/Apr/13 ]|
What version of Doctrine are you using? This sounds like a bug that was fixed some time ago
|Comment by Benjamin Eberlei [ 04/May/13 ]|
The query is correct, "c.parentCategory c2" generates the right query as per your screenshot. Its just not the order of the queries that you want, Native SQL wil help you here.