sequelize/sequelize — pull request #1694 by mithrandirii (2014-04-29 06:10:40+00:00)
Title: add query option parameter to hook functions, to get posibility to reuse transaction for example

forwards given query options like transaction to hook funktions to reuse it there. (https://github.com/sequelize/sequelize/issues/1634)

// (3) beforeBulkCreate(daos, fields, queryOptions, fn) / beforeBulkDestroy(daos, fields, transaction, fn) / beforeBulkUpdate(daos, fields, queryOptions, fn)

// (4) beforeCreate(dao, queryOptions, fn) / beforeDestroy(dao, queryOptions, fn) / beforeUpdate(dao, queryOptions, fn)

// (5) afterCreate(dao, queryOptions, fn) / aftreDestroy(dao, queryOptions, fn) / afterUpdate(dao, queryOptions, fn)

// (6) afterBulkCreate(daos, fields, queryOptions, fn) / afterBulkDestory(daos, fields, queryOptions, fn) / afterBulkUpdate(daos, fields, queryOptions, fn)