title: val.replace is not a function - Sequelize
body: <p>I keep getting this error every-time I execute the code below, I can't seem to figure it out</p>
  
  <blockquote>
    <p>Unhandled rejection TypeError: val.replace is not a function
        at Object.SqlString.escape</p>
  </blockquote>
  
  <pre><code>var connection = new Sequelize('database', 'root', 'phase_99');
  
  var User = connection.define('user', {title: Sequelize.STRING});
  var Project = connection.define('project', {title: Sequelize.STRING});
  
  
  
  User.hasMany(Project);
  Project.belongsTo(User);
  
  connection.sync().then(() =&gt; {
  User.create({title: 'user'})
    .then(user =&gt; {
      var project = Project.create({title: 'ISD Corp'});
      user.addProject({project});
    })
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gm3k8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gm3k8.png" alt="enter image description here"></a></p>