Howdy, can anyone point me to some documentation around how to insert a record into a many to many relationtable?
d
David Mazza
11/06/2019, 7:35 AM
Do you have a model specifically for the many-to-many relationship? Or does each model simply have many of the other model?
David Mazza
11/06/2019, 7:37 AM
I feel that the easiest way is to create a model just for the relationship that you could also store other fields on (if you needed to). And then insertion works the same way as any other model. But that’s not the only way.
t
Tim B
11/07/2019, 6:17 AM
There's a separate relation table under the hood, but I didn't explicitly name it / define it