Merge pull request #1429 from jonhester/fix-typo

fix typo in crud
This commit is contained in:
Jinzhu 2017-04-17 10:37:42 +08:00 committed by GitHub
commit 8e2c4ee981

View File

@ -598,7 +598,7 @@ db.Model(&user).Omit("name").Updates(map[string]interface{}{"name": "hello", "ag
### Update Changed Fields Without Callbacks ### Update Changed Fields Without Callbacks
Above updating operations will perform the mdoel's `BeforeUpdate`, `AfterUpdate` method, update its `UpdatedAt` timestamp, save its `Associations` when updaing, if you don't want to call them, you could use `UpdateColumn`, `UpdateColumns` Above updating operations will perform the model's `BeforeUpdate`, `AfterUpdate` method, update its `UpdatedAt` timestamp, save its `Associations` when updaing, if you don't want to call them, you could use `UpdateColumn`, `UpdateColumns`
```go ```go
// Update single attribute, similar with `Update` // Update single attribute, similar with `Update`