title: Pass Object into hook using Sequelize
body: <p>I am using Sequelize for my node application's database (SQL Server) interaction tool. I want to create a hook that runs any time there is an update/interation to a table, I will call this table "User" for the sake of this question. The hook I have chosen to use is Sequelize's "afterBulkUpdate".</p>
  
  <p>I defined the hook within the definition of my "User" model. I have verified that the hook fires when the "User" is updated. However, what I want to do is to pass in the individual "User" that has been updated to the "afterBulkUpdate" hook. My application is broken up into the MVC architecture with the actual call to Sequelize's ".update" inside a UserService while the hook is defined within the User Model. In between those two layers is where the actual data gets lost.</p>
  
  <p>TLDR:
  If I update my User object to {"name":"fred","desc":"updated"}. How do I pass this to my Sequelize hook when the update function doesn't have a line (that I can see) calling the hook?</p>
  
  <p>Example Code:<br>
  My Hook definition:<br></p>
  
  <pre><code>hooks: 
    afterBulkUpdate: (user, options) -&gt;
      console.log "Do something with the actual data here"
  </code></pre>
  
  <p>My User.Update definition:<br></p>
  
  <pre><code>  update: (user) -&gt;
  new Promise (resolve, reject) -&gt;
    User.update(
      user
      where:
        name: user.name
        )
    .then (res) -&gt;
      resolve res
    .catch (err) -&gt;
      reject err
  </code></pre>