title: Sequelize update with association not updating table for the associated model
body: <p>I have two tables below:
   1. <code>Poll</code>
   2. <code>Option</code></p>
  
  <p>The Poll model is as follows:</p>
  
  <pre><code> const Sequelize = require('sequelize');
   let dbService = require('../services/dbService.js');
  
   let Option = require('./options');
  
   let Poll = dbService.define('Poll', {
   poll: {
      type: Sequelize.STRING,
      allowNull: false
   },
   isAnonymous: {
      type: Sequelize.STRING,
      allowNull: false
   },
   startDate: {
      type: Sequelize.STRING,
   },
   endDate: {
      type: Sequelize.STRING,
   },
   active: {
      type: Sequelize.BOOLEAN,
  
   }
   });
  
   Poll.hasMany(Option);
  
   module.exports = Poll;
  </code></pre>
  
  <p>The Option model is as follows:</p>
  
  <pre><code>const Sequelize = require('sequelize');
  let dbService = require('../services/dbService.js');
  
  let Option = dbService.define("option", {
      name: Sequelize.STRING
  });
  
  module.exports = Option;
  </code></pre>
  
  <p>This is my /GET route for api/poll/:id</p>
  
  <p><a href="https://i.stack.imgur.com/eRAae.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRAae.png" alt="This is my /GET route for api/poll/:id"></a></p>
  
  <p>I want to update the poll. All the other routes are working fine. I am just stuck on updating the model. </p>
  
  <p>The controller for /PUT api/poll/:id
  <a href="https://i.stack.imgur.com/21fDI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/21fDI.png" alt="enter image description here"></a></p>
  
  <p>The service for /PUT api/poll/:id
  <a href="https://i.stack.imgur.com/lWaOd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lWaOd.png" alt="enter image description here"></a></p>
  
  <p>This only updates the Poll table, the Option table's column does not get updated. How can I achieve the update with the one to many association like this?</p>
  
  <p>I have tried this too! <a href="https://stackoverflow.com/a/33960831/8140232">Sequelize update with association
  </a>
  I have even done the same as the sequelize docs. But I am unable to achieve what I want. I've been stuck on this for a while. Any kinda help will be appreciated.
  Thanks!</p>