[DDC-2305] [GH-584] QueryBuilder::addCriteria improvements Created: 19/Feb/13  Updated: 03/Jan/14  Resolved: 03/Jan/14

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 1
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of chEbba:

Url: https://github.com/doctrine/doctrine2/pull/584

Message:

1. Fix problem with different comparisons on the same field in QueryExpressonVisitor (now index value is added).
2. Add criteria field aliasing. Usually oject criteria has "filed = value" notation while DQL has "alias.field = value".
First level fields are added with alias, second+ level fields (object.field, parent.object.field) are truncated to the second level (object.field) without alias. Alias map can be implemented in future.



 Comments   
Comment by Benjamin Eberlei [ 19/Feb/13 ]

A related Github Pull-Request [GH-584] was opened
https://github.com/doctrine/doctrine2/pull/584

Comment by Doctrine Bot [ 03/Jan/14 ]

A related Github Pull-Request [GH-584] was closed:
https://github.com/doctrine/doctrine2/pull/584

Comment by Benjamin Eberlei [ 03/Jan/14 ]

Fixed in 35a62e9a

Generated at Mon Apr 21 02:41:54 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.