help me! a table has two associations happening with the same foregin key #13401
Unanswered
yishen-yishen
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Like the picture above!。
worker_task.worker_id
worker.id
is theOne-To-Many
associations.Ant
worker_task.other_workerid
worker.id
is also theOne-To-Many
associations.I want to query the
worker.name
corresponding toworker_id
andworker.name
corresponding toother_workerid
at the same time. How can I do.Beta Was this translation helpful? Give feedback.
All reactions