typeorm吧 关注:0贴子:2
  • 0回复贴,共1

服了,one-to-many根本没法简便实用,要这个orm有何用?

只看楼主收藏回复

用orm的model来操作one-to-many关联,新建是能新建,update时各种问题,最后还是得手动处理many侧的增删。
看issue,相关issue提了几年都没人修,20k star的项目有2k的issue。
Unable to delete subordinate relation entity when saving parent entity #3938
Using .save for one-to-many relationship always tries to insert instead of update. #3095
就这?还不如用sequelize


IP属地:广东1楼2020-07-31 11:01回复