Can I have an inverse HasManyThrough? #4229
Unanswered
ivanvinicius
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check the image below before I explain what I want to do.
Imagine that my query starts on nutritionist model, and then preload the user. And user have an image which is in images table.
I have tried to use HasManyThrough to preload the image, but I realized that my tables have the inverse relationship of the point I'm starting from
Is there any way to have an inverse HasManyThrough relation?
If not, how could I do it work otherwise?
If you wanna see my models...
Beta Was this translation helpful? Give feedback.
All reactions