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 d926a05 commit 2ee239aCopy full SHA for 2ee239a
main.go
@@ -433,7 +433,7 @@ func (s *DB) FirstOrCreate(out interface{}, where ...interface{}) *DB {
433
return c
434
}
435
436
-// Update update attributes with callbacks. refer: https://jinzhu.github.io/gorm/crud.html#update
+// Update update attributes with callbacks, refer: https://jinzhu.github.io/gorm/crud.html#update
437
// WARNING when update with struct, GORM will not update fields that with zero value
438
func (s *DB) Update(attrs ...interface{}) *DB {
439
return s.Updates(toSearchableMap(attrs...), true)
0 commit comments