mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1000: HAVING clause does not support scalar values #1244
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 23, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user felicitus:
The following DQL doesn't work:
Doctrine2 tells me: Error: 'result' does not point to a Class. Unfortunately the documentation doesn't tell the developer how to get around this; maybe it is already possible, maybe it's not.
@doctrinebot commented on GitHub (Jan 24, 2011):
Comment created by @beberlei:
Not a bug, if you read the EBNF this is not supported. Some database vendors don't support this becaues SELECT is evaluated after HAVING. DQL is vendor abstration, so this will never be supported.
@doctrinebot commented on GitHub (Jan 24, 2011):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Jan 24, 2011):
Comment created by felicitus:
What's the workaround then? Subselects or something similar, or filtering in PHP code?
@doctrinebot commented on GitHub (Jan 24, 2011):
Comment created by @beberlei:
The workaround is:
Or use Native SQL.