[v6] Ambiguous on preload with Related Model #4555
Unanswered
gabrielbuzziv
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
-
I want to preload a hasMany relation and at this preload join with another table to specify the results i need, but since i have a common column between those queries i'm taking
ambiguous
, but the problema is that i can't set the table name at the preload.My Question Model Relationship
My Query
The generated SQL
Look that the
preload
is generating thiswhere "question_id" IN ()
automatically but not adding the table name and we can't control it.Beta Was this translation helpful? Give feedback.
All reactions