Sequelize: Include.where filtering by a 'parent' Model attribute
问题 I have two Models related, Catalog and ProductCategory. The latter has a composed PK, 'id, language_id'. Here are the models simplified: var Catalog = sequelize.define("Catalog", { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, user_id: { type: DataTypes.INTEGER, allowNull: false }, product_category_id: { type: DataTypes.STRING(7) }, language_id: { type: DataTypes.INTEGER }, ... more stuff ... } var ProductCategory = sequelize.define("ProductCategory", { id: { type: