Sequelize TypeError build.save is not a function
<p>I have some jQuery logic setup where users can submit multiple field values, which should be created as individual records in my database. My former solution to doing this was to map my values to a variable that is then used with the <code>.bulkCreate</code> method, but I was unaware that MYSQL does not support auto-incrementing fields with this method. As a result I decided to take my logic and instead create a for loop with the <code>.create</code> method. Unfortunately I receive this error message: <code>TypeError: this.build(...).save is not a function</code> at the line <code>models.DiscoverySource.create(sources)</code>. Why does this message appear when I'm not using the build method?</p>

<pre><code>.post(function(req, res){
        console.log(req.body.discoverySource);
    var sources = _.map(req.body.discoverySource, function (source) {
        return {
             discoverySource: source,
             organizationId: req.body.organizationId
        };
    });
    console.log("These are the" + sources); //outputs "These are the [object Object],[object Object], [object Object]
    console.log(sources[0].discoverySource); //outputs correctly first value 
    console.log(sources[0].organizationId); //outputs correctly the first value

    for (i=0; i &lt; sources.length; i++){
        models.DiscoverySource.create(sources)
        .then(function(){
        return models.DiscoverySource.findAll();
        }).then(function(discoverySource){
        console.log(discoverySource);
        res.redirect('/app');
        }).catch(function(error){
        res.send(error);
        console.log('Error during Post: ' + error);
        });
    }
});
</code></pre>