-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Calling distinct() on QueryBuilder does not update state correctly #10784
Comments
Looks like it would be fixed by adding |
Previously calling distinct() when the QueryBuilder was in clean state would cause subsequent getDQL() calls to ignore the distinct queryPart Fixes doctrine#10784
@greg0ire hope I was following your contribution guidelines correctly. I will appreciate a review of my PR. |
What version are you using, precisely? |
2.14.3 is currently used in my project and I was hoping to get a fix for that version but I can also aim for an upgrade and submit a fix for 2.15.x |
Please do, 2.14.x is no longer maintained. |
Previously calling distinct() when the QueryBuilder was in clean state would cause subsequent getDQL() calls to ignore the distinct queryPart Fixes doctrine#10784
Previously calling distinct() when the QueryBuilder was in clean state would cause subsequent getDQL() calls to ignore the distinct queryPart Fixes doctrine#10784
Bug Report
Summary
When calling distinct() on a Query builder after getQuery(), then a subsequent getQuery() would ignore the distinct query part.
Current behavior
See summary
How to reproduce
Expected behavior
The second getQuery() call should return a Query using the distinct keyword.
The text was updated successfully, but these errors were encountered: