Sequelize Many to Many failing with 'is not associated to' when trying to associate entries?
- 阅读更多 关于 Sequelize Many to Many failing with 'is not associated to' when trying to associate entries?
I am having a problem with my many to many configuration with Sequelize, where it complains that site_article_keyword is not associated to article_keyword . The code below represents a minimal test case to try to understand what I am doing wrong (I hoped to provide something smaller, but this is what I have). I am using bluebird for the Promise API. const Sequelize = require('sequelize'); var sequelize = new Sequelize(undefined, undefined, undefined, { dialect: 'sqlite', storage: './mydatabase', }); const SiteArticle = sequelize.define('site_article', { id: { type: Sequelize.INTEGER,