You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package documentation says that to apply global scopes we have to call $join->withGlobalScopes(), but if they are global scopes, it doesn't make sense for me to have to call them, it should be the other way around, if I don't want to, then yes I use withoutGlobalScopes(), but to avoid causing a break, I would suggest a package configuration file to set withGlobalScopes to true, then every join the package checks if it has global scopes and applies it if it does.
Thanks.
The text was updated successfully, but these errors were encountered:
That's reasonable, we are open to PRs if you have any rush on this. The reason to not apply this automatically is that SQL joins are not a 1-1 match with whatever other regular SQL query, so it can get tricky.
The package documentation says that to apply global scopes we have to call $join->withGlobalScopes(), but if they are global scopes, it doesn't make sense for me to have to call them, it should be the other way around, if I don't want to, then yes I use withoutGlobalScopes(), but to avoid causing a break, I would suggest a package configuration file to set withGlobalScopes to true, then every join the package checks if it has global scopes and applies it if it does.
Thanks.
The text was updated successfully, but these errors were encountered: