-
Notifications
You must be signed in to change notification settings - Fork 398
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
Many-to-many eager hydration (feature request) #1965
Comments
Hello @mringler , I tried using kind regards |
Hello @mringler, I checked
|
Hello @mringler, commenting my opening issue: actually a |
Suppose we have a User to Role m:m relationship via a cross-reference table
user_to_role
.It would be useful to be able to write:
and only have 1 extra query to fetch related roles records (and hydrate them), instead of issuing 1 query per User entity.
We would need a
UserToRoleQuery::filterByUserIDs([...])
.It would also be useful to be able to reference a many-to-many relation via plural name like
->with('roles')
.kind regards
The text was updated successfully, but these errors were encountered: