开发者

Delete single row from HABTM join table

开发者 https://www.devze.com 2022-12-25 14:41 出处:网络
I\'ve got model that use ExtendAssociations, but for some reason deleteHABTM doesn\'t seem to work on some models (no idea :/). Is there an easy way to just delete a single row fro开发者_开发问答m the

I've got model that use ExtendAssociations, but for some reason deleteHABTM doesn't seem to work on some models (no idea :/). Is there an easy way to just delete a single row fro开发者_开发问答m the join table?


This seems to be some bad practice in cake.I suggest you check your ExtendAssociations and make it work as you expected.

If you insist, there is an option called deleteQuery in HABTM.That may help you.

0

精彩评论

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

关注公众号