Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-2794: the Paginator does not support arbitrary join #3543

Closed
doctrinebot opened this issue Nov 14, 2013 · 7 comments
Closed

DDC-2794: the Paginator does not support arbitrary join #3543

doctrinebot opened this issue Nov 14, 2013 · 7 comments
Assignees
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user stof:

Using the following query with the paginator fails:

SELECT u
FROM User u
JOIN Message m WITH m.author = u
WHERE m.status = 'draft' -- a condition justifying the join

The CountWalker and the CountOutputWalker both throw a exception saying "Cannot count query which selects two FROM components, cannot make distinction"

This message is wrong (I can make distinction here. Only User is selected in the result set) and confusing (I spent some time finding the second FROM before figuring it was related to the use of an arbitrary join instead of an association join).

@doctrinebot
Copy link
Author

@doctrinebot
Copy link
Author

Comment created by ppinel:

Hi,

I have the same issue.
My query is : SELECT entity FROM W\XBundle\Entity\X entity LEFT JOIN Z\YBundle\Entity\Y y WITH y.x = entity LEFT JOIN y.v v WHERE v.name LIKE :like

Is there a way to fix this issue ? I really need this to work with the Paginator.

Best,

@doctrinebot
Copy link
Author

Comment created by stof:

Why changing the status to "Awaiting feedback" ? It is not waiting for a feedback of the reporter to check the fix. It is an open ticket which does not have a fix yet

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot
Copy link
Author

Comment created by darkangel:

Is this going to be back-ported to 2.4.x?

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

No, this is actually a new supported feature: I'm changing the issue type.

@doctrinebot
Copy link
Author

Comment created by Sagar.Lotiya:

This issue should be back-ported to 2.4.x as this seems not just new supported feature but should be present in 2.4 as improvements or fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants