Re: Deleting items and their children if they belongTo

2009-07-27 Thread Piotr Kilczuk
Hi, > I have baked a few controllers, models and views, but if I delete an > item using threads/delete/3 is there an easy way of deleting all the > posts (with an thread_id of 3) that "belongTo" the thread with an id > of 3, which I have defined as "hasMany" posts, or do I need to do it > manuall

Deleting items and their children if they belongTo

2009-07-27 Thread Taff
I'm luvin cakephp at the moment, in particular how fast things get done, and all the hidden functionality that automagically "happens". I was wondering if there is a simple way to do the following: I have baked a few controllers, models and views, but if I delete an item using threads/delete/3 is