-
-
Notifications
You must be signed in to change notification settings - Fork 95
Support filters with CONDITION_OR #151
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
Conversation
@rande @soullivaneuh @dunglas: Any plans on merging this PR? |
From where Could you please rebase your PR to check CI? |
A CONDITION_OR will be used if you use a form field of type "sonata_type_model_autocomplete" and set "property" to an array of fields.
Without my changes, this generates a query where all conditions are combined with "AND", because the CONDITION_OR is silently ignored. So if you have an autocomplete and want the user to be able to search for either firstname or lastname, only items where both firstname and lastname match will be autocompleted. |
My PR is already based on the latest master - I'll try to close and reopen it to trigger CI checks. |
CI build randomly fails (see #153). CS issues are in existing code, and IMHO should be addressed in a commit separate from my changes. |
I fixed CS on master, please rebase again. |
I rebased, but the CI build failed (see #153). Closing and reopening, maybe it'll work next time... |
@soullivaneuh The failing TravisCI checks relate to this issue: sonata-project/SonataAdminBundle#3150 |
Closing and reopening to trigger ci checks. |
Hmpf. I thought the dependency on security-acl was fixed, but that was only on another pr. |
@phofmann-trust you can rebase to get the latest travis conf |
Why rebase? On which branch? 😕 |
on the master branch |
Latest commit on master is from 14 Dec - I already did a rebase on this last year. |
i restarted travis, lets see if its working... |
@core can you please check travis? maybe here is something different? Oo |
travis is green now after a restart i will let @dbu merge this PR |
oskar, i only maintain phpcr-odm, but not mongo odm. |
@dbu sorry my fault Am Sonntag, 14. Februar 2016 schrieb David Buchmann :
|
tests are green, looks valid to me 👍 |
Support filters with CONDITION_OR
Thank you @phofmann-trust for your contribution! |
@OskarStark Thanks for merging. Awesome! 👍 |
This PR adds support for StringFilters with CONDITION_OR. These are required for correct filtering in fields of type sonata_type_model_autocomplete with multiple properties.