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

What's the proper way to create criteria with pivot tables? #76

Open
casenjo opened this issue May 13, 2016 · 1 comment
Open

What's the proper way to create criteria with pivot tables? #76

casenjo opened this issue May 13, 2016 · 1 comment

Comments

@casenjo
Copy link

casenjo commented May 13, 2016

I have a table, A, which has a many-to-many relationship with two other tables, B and C, via their respective pivot tables.

My model for A has a method which returns a BelongsToMany relation for table B. How can I use that when I'm building a criteria to find specific results?

Ex: I want to get all of the rows of table A that have a specific value of B in the pivot table

@tucq88
Copy link

tucq88 commented Jul 7, 2016

+1 Curious as well

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

No branches or pull requests

2 participants