You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days
Your Question
Hello,
I looked at the doc and issues on github but couldn't find an answer.
I've got a recipe model :
That has many Quantity children:
that itself has many-to-many relationships:
To update it, I'm doing
rp.db.Session(&gorm.Session{FullSaveAssociations: true}).Model(&recipe).Where("id = ?", recipe.ID).Updates(&recipe)
It's working well if I'm changing the weight of Quantity, if I add a Quantity element to the array, but not if I'm removing one of them
Example before update:
After update, I have the exactly same array, whereas I should have:
Does anyone know how I can delete orphan ?
The text was updated successfully, but these errors were encountered: