不要怂,就是干,撸起袖子干!

Commit c4d5a3e9 by Mick Hansen

Merge branch 'master' of github.com:sequelize/sequelize

2 parents 52a1f1a0 b63a2ced
Showing with 1 additions and 0 deletions
......@@ -18,6 +18,7 @@
- Signature of hooks has changed to pass options to all hooks. Any hooks previously defined like `Model.beforeCreate(values)` now need to be `Model.beforeCreate(values, options)` etc.
- Results returned by hooks are ignored - changes to results by hooks should be made by reference
- `Model.destroy()` signature has been changed from `(where, options)` to `(options)`, options now take a where parameter.
- `Model.update()` signature has been changed from `(values, where, options)` to `(values, options)`, options now take a where parameter.
- The syntax for `Model.findOrBuild` has changed, to be more in line with the rest of the library. `Model.findOrBuild(where, defaults);` becomes `Model.findOrBuild({ where: where, defaults: defaults });`.
# v2.0.0-dev13
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!