DDC-2305: [GH-584] QueryBuilder::addCriteria improvements #2897

Closed
opened 2026-01-22 14:06:54 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 19, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

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.
Originally created by @doctrinebot on GitHub (Feb 19, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: 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.
admin added the Bug label 2026-01-22 14:06:54 +01:00
admin closed this issue 2026-01-22 14:06:55 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 19, 2013):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Feb 19, 2013): Comment created by @beberlei: A related Github Pull-Request [GH-584] was opened https://github.com/doctrine/doctrine2/pull/584
Author
Owner

@doctrinebot commented on GitHub (Jan 3, 2014):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Jan 3, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-584] was closed: https://github.com/doctrine/doctrine2/pull/584
Author
Owner

@doctrinebot commented on GitHub (Jan 3, 2014):

Comment created by @beberlei:

Fixed in 35a62e9a

@doctrinebot commented on GitHub (Jan 3, 2014): Comment created by @beberlei: Fixed in 35a62e9a
Author
Owner

@doctrinebot commented on GitHub (Jan 3, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jan 3, 2014): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (May 9, 2014):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (May 9, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-584] was closed: https://github.com/doctrine/dbal/pull/584
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2897