[DDC-2046] QueryBuilder allows joining with the same alias multiple times Created: 27/Sep/12 Updated: 23/Jan/13 Resolved: 23/Jan/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Marco Pivetta||Assignee:||Marco Pivetta|
Currently, QueryBuilder allows assembling broken DQL like
It may be interesting if we either replace DQL parts by associating them to their alias.
Another solution, since Alexander noted that it is a dumb string builder, is to throw exceptions early to disallow broken DQL generation (such as in the second case).
It may also be useful to allow giving insights about the currently existing joined aliases.
|Comment by Marco Pivetta [ 27/Sep/12 ]|
Attaching failing test case
|Comment by Marco Pivetta [ 23/Jan/13 ]|
The query builder should not worry about validity of produced DQL