-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support for associations #38
Comments
@mackstar You should be able to simply reference the foreign key (e.g. |
It works for one to one associations, but not for many to many and one to many. |
@rcdilorenzo Hi, +1. How to search by many to many? |
Given example:
And I have select form with multiselect for filter posts by tags: Now I do smth like this for filtering:
It works fine for many_to_many and multi select. |
for me no longer relevant =) |
I think @Merff 's previous instructions show how to use this adequately. The status is closed. |
Okay, that's what I thought. Thanks guys. |
It seems like @Merff's solution filters posts that match all of the tag_ids, right? What if you wanted posts that had any of the tags in the tap_params list? I'm traying to wrap my head around the range function operators and the aggregate functions here. |
Really like the library but have not been able to see how to do searches on associations which is huge need when using a relational database. Many thanks.
The text was updated successfully, but these errors were encountered: