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 from the join table?
Asked
Active
Viewed 1,402 times
0

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129

pawelmysior
- 3,190
- 3
- 28
- 37
-
1You could try turning cascade on when deleting, as this should delete all related records also. Might be worth a shot – David Yell Apr 06 '10 at 12:17
1 Answers
0
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.

Young
- 7,986
- 7
- 43
- 64