-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Adding WHERE clause to a relation #28
Comments
Yes. You can use all the usual Query Builder methods intermixed with Relations methods. |
Sorry, but could you give an example as I can not get it to work.
I get error column year not found in where clause |
Maybe try |
Adding the table name does not work as it adds the where clause to the main query. Thanks |
Ahh I see what you mean now. No, this is not currently possible, though we've had requests for handling content from join tables and this would overlap with conditional relationships. I will consider it a feature request. |
Thanks. |
HI,
Is there anyway to add a WHERE clause to a relation?
For example retrieve all authors details with all of their posts created in 2020.
The text was updated successfully, but these errors were encountered: