DDC-1346: Error when referencing aliased sub-select in where clause #1688

Closed
opened 2026-01-22 13:22:15 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 24, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user darkangel:

Example:
\


$qb->andWhere('test > 3');```

[Semantical Error] line 0, col 186 near 'test > 3 ORDER': Error: 'test' does not point to a Class.
Originally created by @doctrinebot on GitHub (Aug 24, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user darkangel: Example: \ ```$qb->addSelect('(SELECT COUNT(tp2) FROM TeamPlayer tp2 WHERE tp2.team = t) AS test'); $qb->andWhere('test > 3');``` [Semantical Error] line 0, col 186 near 'test > 3 ORDER': Error: 'test' does not point to a Class.
admin added the Bug label 2026-01-22 13:22:15 +01:00
admin closed this issue 2026-01-22 13:22:17 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 27, 2011):

Comment created by @beberlei:

Assigned to Guilherme

@doctrinebot commented on GitHub (Aug 27, 2011): Comment created by @beberlei: Assigned to Guilherme
Author
Owner

@doctrinebot commented on GitHub (Sep 5, 2011):

Comment created by @guilhermeblanco:

Fixed since commit 6bbf2d9da3

@doctrinebot commented on GitHub (Sep 5, 2011): Comment created by @guilhermeblanco: Fixed since commit https://github.com/doctrine/doctrine2/commit/6bbf2d9da35aa8ce500f26d671a135a00870e33a
Author
Owner

@doctrinebot commented on GitHub (Sep 5, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Sep 5, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Sep 25, 2011):

Comment created by @beberlei:

Merged into 2.1

@doctrinebot commented on GitHub (Sep 25, 2011): Comment created by @beberlei: Merged into 2.1
Author
Owner

@doctrinebot commented on GitHub (Oct 31, 2011):

Comment created by @beberlei:

Merged into 2.1.x

@doctrinebot commented on GitHub (Oct 31, 2011): Comment created by @beberlei: Merged into 2.1.x
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1688