-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Global model scopes ignored in HasManyDeep #35
Comments
It's not ideal, but it's the expected behavior. Of the intermediate models' global scopes, only You'll need to apply these global scopes manually. |
Thank you for the prompt reply and clarification - it's useful to confirm it as expected behaviour, and I will ensure I deal with these instances appropriately. |
@staudenmeir is it normal that withTrashed() doesn't works on this case? |
Oops, I commented on the wrong rep, sorry. |
I have global scopes that are applied in the boot() method of some of my models in a HasManyDeep relationship.
It seems like these are being ignored - in effect, I'm getting data that I shouldn't be because my model 'active' property is being ignored.
Is this expected behaviour, or should global scopes apply in intermediate models?
The text was updated successfully, but these errors were encountered: