阅读背景:

使用Sequelize更新关联模型中的属性

来源:互联网 

Is it possible to update attributes on both the parent model and the associated models all in one go? I am having trouble getting it to work and haven't been able to find any full examples. I'm not sure if it's something wrong with my code or if it wasn't intended to work the way I would expect. I tried adding the onUpdate : 'cascade' to my hasMany definition, but that didn't seem to do anything.Is it possible to update attributes on both the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: