mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1591: Paginator: ResultVariable cannot be used in HavingClause #1996
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 9, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user craue:
Using the QueryBuilder, I'm getting the message
when trying to add a "having" clause for the field "distance", which is defined in the "select" part of the statement:
@doctrinebot commented on GitHub (Jan 14, 2012):
Comment created by @FabioBatSilva:
Christian, I couldn't reproduce.
Can you give more details ?
Thanks.
@doctrinebot commented on GitHub (Jan 15, 2012):
Comment created by craue:
I tried it again and found out that it could also be an issue in https://github.com/whiteoctober/Pagerfanta rather in Doctrine itself because my query is passed to that pager to show a sliced result. Maybe that issue could already be resolved by https://github.com/whiteoctober/Pagerfanta/pull/46. Will give it a try...
@doctrinebot commented on GitHub (Jan 15, 2012):
Comment created by craue:
In fact, applying that patch made the query work. So this is not a Doctrine issue.
@doctrinebot commented on GitHub (Feb 10, 2012):
Comment created by craue:
Since the PR mentioned was not merged and Doctrine's pagination is used now, the issue still exists and I cannot use a result variable in a "having" clause. But I'd like to. ;)
@doctrinebot commented on GitHub (Feb 10, 2012):
Comment created by stof:
This ticket is indeed invalid as it is talking about the query builder. Please open a dedicated ticket for the pagination issue
@doctrinebot commented on GitHub (Feb 10, 2012):
Comment created by craue:
But I am using the QueryBuilder and then passing the query to a DoctrineORMAdapter instance. The error message didn't change, just the line number:
But I can confirm that this error doesn't occur when not using a paginator. How to continue?
@doctrinebot commented on GitHub (Feb 10, 2012):
Comment created by @beberlei:
Which paginator are you using?
@doctrinebot commented on GitHub (Feb 10, 2012):
Comment created by craue:
Still https://github.com/whiteoctober/Pagerfanta/ ;)
@doctrinebot commented on GitHub (Feb 20, 2012):
Comment created by @beberlei:
Renamed and assigned issue.
@doctrinebot commented on GitHub (Mar 15, 2012):
Comment created by @asm89:
Fixed as sander was kind enough to resubmit the code to the doctrine2 repository now instead:
https://github.com/doctrine/doctrine2/pull/298
@doctrinebot commented on GitHub (Mar 15, 2012):
Issue was closed with resolution "Fixed"