I have a many2many structure similar to GORM\'s example:
// User has and belongs to many languages, use `user_languages` as join table type User struct { gor
Also, you can do this by using "replace"
DB.Model(&user).Association("Languages").Replace(user.Languages)