mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3679: Paginator generates broken SQL when paginating ordered query #4520
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 (Apr 8, 2015).
Originally assigned to: @ostrolucky on GitHub.
Jira issue originally created by user hosiplan:
I have a following DQL
Which generates following SQL
Now I wanna paginate it
the generated SQL Count query is
Next executed query is the query that selects ids for where in
And there goes my problem
I'm going to investigate more, I just wanned to open an issue for now so you're aware.
@doctrinebot commented on GitHub (Apr 8, 2015):
Comment created by hosiplan:
@doctrinebot commented on GitHub (Apr 8, 2015):
Comment created by hosiplan:
I've narrowed down the problem to this piece of code
This breaks the searchPatterns map
!https://dl.dropboxusercontent.com/u/32120652/permanent/DDC-3679.png!
Because it thinks it needs to use different table alias for mapped superclass that contains the
idproperty.@doctrinebot commented on GitHub (Apr 8, 2015):
Comment created by hosiplan:
I've opened a pullrequest with failing test case https://github.com/doctrine/doctrine2/pull/1377
@doctrinebot commented on GitHub (Apr 8, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1377] was assigned:
https://github.com/doctrine/doctrine2/pull/1377
@doctrinebot commented on GitHub (Apr 8, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1377] was labeled:
https://github.com/doctrine/doctrine2/pull/1377
@doctrinebot commented on GitHub (Apr 9, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1377] was merged:
https://github.com/doctrine/doctrine2/pull/1377
@ostrolucky commented on GitHub (Aug 7, 2018):
Fix merged in https://github.com/doctrine/doctrine2/pull/1377