[DDC-2305] [GH-584] QueryBuilder::addCriteria improvements Created: 19/Feb/13  Updated: 09/May/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


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

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


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.

Comment by Benjamin Eberlei [ 19/Feb/13 ]

A related Github Pull-Request [GH-584] was opened

Comment by Doctrine Bot [ 03/Jan/14 ]

A related Github Pull-Request [GH-584] was closed:

Comment by Benjamin Eberlei [ 03/Jan/14 ]

Fixed in 35a62e9a

Comment by Doctrine Bot [ 09/May/14 ]

A related Github Pull-Request [GH-584] was closed:

Generated at Wed Nov 25 11:19:15 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.