Relationship or select2_multiple field not using pivot table #502
-
I'm sorry if I'm missing something obvious, but am trying to set up a many-to-many relationship through a pivot table, where, for example, one is able to set groups of highlighted products. I have the tables: In my
The
The
When saving, I get an I can see it is trying to update the I'm just curious what I'm doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @alancwoo when using a pivot table both relations should be Cheers |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
Hey @alancwoo when using a pivot table both relations should be
belongsToMany
and nothasMany
.Cheers