Re: Making callbacks in associated models work

2014-09-26 Thread Radharadhya Dasa
It happens if the *dependent* key is set to true. * Otherwise it should not happen.rrd* 2014-09-26 10:57 GMT+02:00 Mateusz 2131 : > Hi. > > When I delete a record, it's associated records are deleted as well and > that works perfectly, but the callbacks (before/afterDelete) in those > associate

Making callbacks in associated models work

2014-09-26 Thread Mateusz 2131
Hi. When I delete a record, it's associated records are deleted as well and that works perfectly, but the callbacks (before/afterDelete) in those associated models are never called. Somehow, I managed to fix this behavior just by adding App::import('model', 'AssociatedModel'); in my parent mo