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

Commit 78602d19 by 2kindsofcs Committed by Sushant

docs(hooks): explicitly state they don't work on instances (#11513)

1 parent 3c8ca77a
Showing with 2 additions and 0 deletions
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Hooks (also known as lifecycle events), are functions which are called before and after calls in sequelize are executed. For example, if you want to always set a value on a model before saving it, you can add a `beforeUpdate` hook. Hooks (also known as lifecycle events), are functions which are called before and after calls in sequelize are executed. For example, if you want to always set a value on a model before saving it, you can add a `beforeUpdate` hook.
**Note:** _You can't use hooks with instances. Hooks are used with models._
For a full list of hooks, see [Hooks file](https://github.com/sequelize/sequelize/blob/master/lib/hooks.js#L7). For a full list of hooks, see [Hooks file](https://github.com/sequelize/sequelize/blob/master/lib/hooks.js#L7).
## Order of Operations ## Order of Operations
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!