@@ -6,7 +6,7 @@ Hooks (also known as lifecycle events), are functions which are called before an
...
@@ -6,7 +6,7 @@ Hooks (also known as lifecycle events), are functions which are called before an
## Available hooks
## Available hooks
Sequelize provides a lot of hooks. The full list can be found in directly in the [source code - lib/hooks.js](https://github.com/sequelize/sequelize/blob/master/lib/hooks.js#L7).
Sequelize provides a lot of hooks. The full list can be found in directly in the [source code - lib/hooks.js](https://github.com/sequelize/sequelize/blob/v6/lib/hooks.js#L7).
## Hooks firing order
## Hooks firing order
...
@@ -382,4 +382,4 @@ It is very important to recognize that sequelize may make use of transactions in
...
@@ -382,4 +382,4 @@ It is very important to recognize that sequelize may make use of transactions in
* If a transaction was used, then `{ transaction: options.transaction }` will ensure it is used again;
* If a transaction was used, then `{ transaction: options.transaction }` will ensure it is used again;
* Otherwise, `{ transaction: options.transaction }` will be equivalent to `{ transaction: undefined }`, which won't use a transaction (which is ok).
* Otherwise, `{ transaction: options.transaction }` will be equivalent to `{ transaction: undefined }`, which won't use a transaction (which is ok).