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

Commit b253ab54 by Felix Becker Committed by GitHub

Add note on Model.Instance and instance.Model to migration guide (#7748)

1 parent baeb98d0
Showing with 1 additions and 0 deletions
......@@ -48,6 +48,7 @@ Sequelize V4 is a major release and it introduces new features and breaking chan
// Instance Method
Model.prototype.someMethod = function () {..}
```
- `Model.Instance` and `instance.Model` are removed. To access the Model from an instance, simply use [`instance.constructor`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor). The Instance class (`Model.Instance`) is now the Model itself.
- Sequelize now uses an independent copy of bluebird library.
- Promises returned by sequelize are now instances of `Sequelize.Promise` instead of global bluebird `Promise`.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!