开发者

Updating the child table

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜