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

scopes on related models conflicts with Eager Loading Specific Columns #12

Open
Pandishpan opened this issue Jun 25, 2018 · 0 comments
Open

Comments

@Pandishpan
Copy link

The character used to separate scope by the relationship conflicts with Laravel's mechanism to select only specific columns from the relationships.

For example:
"with=projects:closed" don't allow to select only id, title, description from that relationship like "with=projects:id,title,description"

A quick fix is maybe to change the separator character for relationships scopes.

"projects:id,title,description#closed"

This example will still work with specific columns selection and scope calling.

Do you have any better idea?

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

1 participant