May 17, 2020
0
Level 2
Has Many with two columns
Hi everyone!
I have a problem: I would like to make relation HasMany to more than one column, in fact I need three columns:
Recource Human has columns dad_id, mom_id and momdad_id. All of them have the same model - Human.
I would like to to show all kids of dad or mom or momdad. So, HasMany must "map" all three columns.
Any idea?
Please or to participate in this conversation.