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
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
Imagine I have this structure: User [HAS_MANY] Picture [HAS_ONE] Path [HAS_ONE] descriptor (doesn't make sens, just to see how to do this correctly without running 4 queries)
The text was updated successfully, but these errors were encountered:
@kitensei - it's definitely technically possible. I think one of the reasons I haven't tackled this yet is because I'm not sure what the API would look like. If you have any ideas on how to keep it simple, let me know, and I can handle the implementation.
Is it possible to load the model with its relationships directly ? something like
User.with('pictures')
to avoid a huge callback chain ?This example can be ok for one relationship, but what about models having 4 or 5 relationships depth:
Imagine I have this structure: User [HAS_MANY] Picture [HAS_ONE] Path [HAS_ONE] descriptor (doesn't make sens, just to see how to do this correctly without running 4 queries)
The text was updated successfully, but these errors were encountered: