Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top