title: Sequelizer connecting multiple hasMany associations
body: <p>I am following the offical Sequelizer docs, but I am unable to get it working with multiple "hasMany" associations.</p>
  
  <p>The below code renders an error:
  <code>Unhandled rejection Error: [object Object] is not associated to User!</code></p>
  
  <p>How is this done correctly?</p>
  
  <h1>models/user.js</h1>
  
  <pre><code>module.exports = function(sequelize, DataTypes) {
    var User = sequelize.define("User", {
      username: DataTypes.STRING
    }, {
      classMethods: {
        associate: function(models) {
          User.hasMany(models.Movie, models.Book)
        }
      }
    });
  
    return User;
  };
  </code></pre>
  
  <h1>routes/index.js</h1>
  
  <pre><code>var models  = require('../models');
  var express = require('express');
  var router  = express.Router();
  
  router.get('/', function(req, res) {
    models.User.findAll({
      include: [ models.Task, models.Movie ]
    }).then(function(users) {
      res.render('index', {
        title: 'Sequelize: Express Example',
        users: users
      });
    });
  });
  
  module.exports = router;
  </code></pre>