title: A is not associated to B
body: <p>Looked on the internet about similar questions/errors, none of them helped me...</p>
  
  <p><em>Unhandled rejection SequelizeEagerLoadingError: Task is not associated to User!</em></p>
  
  <p>My users route</p>
  
  <pre><code>router.get('', function (req, res) {
    models.User.findAll({
      include: [
        {
          model: models.Task,
          as: 'tasks'
        }
      ]
    }).then(function (users) {
      res.send(users);
    });
  });
  </code></pre>
  
  <p>User model</p>
  
  <pre><code>'use strict';
  
  module.exports = (sequelize, DataTypes) =&gt; {
    const User = sequelize.define('User', {
      first_name: DataTypes.STRING,
      last_name: DataTypes.STRING,
      email: DataTypes.STRING
    }, {
      underscored: true
    });
  
    User.associations = function (models) {
      User.hasMany(models.Task, { as: 'tasks' });
    };
  
    return User;
  };
  </code></pre>
  
  <p>Task model</p>
  
  <pre><code>'use strict';
  
  module.exports = (sequelize, DataTypes) =&gt; {
    const Task = sequelize.define('Task', {
      name: DataTypes.STRING
    }, {
      underscored: true
    });
  
    Task.associations = function (models) {
      Task.belongsTo(models.User);
    };
  
    return Task;
  };
  </code></pre>
  
  <p>I associate them both, and made a bidirectional relationship..</p>