We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08069c1 commit 6ad1b85Copy full SHA for 6ad1b85
callbacks/associations.go
@@ -347,7 +347,7 @@ func SaveAfterAssociations(create bool) func(db *gorm.DB) {
347
}
348
349
if joins.Len() > 0 {
350
- db.AddError(db.Session(&gorm.Session{NewDB: true}).Clauses(clause.OnConflict{DoNothing: true}).Session(&gorm.Session{
+ db.AddError(db.Session(&gorm.Session{}).Clauses(clause.OnConflict{DoNothing: true}).Session(&gorm.Session{
351
SkipHooks: db.Statement.SkipHooks,
352
DisableNestedTransaction: true,
353
}).Create(joins.Interface()).Error)
0 commit comments