860610
我不管我最帅,我是你们的小可爱Sequelize
问题描述: 我在单独创建sequelize的模型时。使用了Model.associate方法, ps:我的sequelize是4.x.x版本。 然后在编写逻辑的时候使用Model.findAll()时我配置了options的include 对象。 cmd提示如下:
// SequelizeEagerLoadingError: room is not associated to cabinet!
从早上9:0 -- 16:48一直没有解决的掉,详情大佬帮忙提点一下。谢谢~
1. 报错信息
2. room模型
3. cabinet模型
4. 连接mysql并且sequelize.import模型
5. 同步mysql数据库 sequelize.sync
6. 逻辑处理操作
再次本菜鸟谢谢Cnodejs的诸位大佬!
2017/08/07 16:54:32