This commit is contained in:
JasonQu 2019-10-10 16:39:21 +08:00
parent 1bca5dbdd9
commit 7b9374b3f6

View File

@ -470,7 +470,7 @@ func (s *DB) Save(value interface{}) *DB {
} }
return newDB return newDB
} }
return scope.callCallbacks(s.parent.callbacks.creates).db return s.Create(value)
} }
// Create insert the value into database // Create insert the value into database