开发者

Updating the child table

开发者 https://www.devze.com 2023-02-10 00:09 出处:网络
I have a relationship table in between two tables which needs to be updated when i update one table. For example TableA(id,name) Relation(TableA_id,TableB_id) 开发者_运维技巧TableB(id,name). How to up

I have a relationship table in between two tables which needs to be updated when i update one table. For example TableA(id,name) Relation(TableA_id,TableB_id) 开发者_运维技巧TableB(id,name). How to update the table Relation while updating the TableA?


Did you set has_and_belongs_to_many in your models of TableA and TableB ?

0

精彩评论

暂无评论...
验证码 换一张
取 消