Hey David, thanks for the answer. I wanted a cascade. I'm finding it such a time saver that such functionality is already "built in".
Awesome stuff :) Taff On Jul 28, 8:54 pm, DavidH <[email protected]> wrote: > Taff, you don't say whther you want todeletethe items (i.e. cascade > thedelete) or avoid deleting the items > > Either way it's controlled by the second parameter to thedelmethod. > Seehttp://book.cakephp.org/view/690/delfor details. > > David > > On Jul 28, 7:43 pm, Taff <[email protected]> wrote: > > > is there a way to make > > > $this->Todolist->del($id) > > >automagicallydelete > > > Todoitems that had todolist_id relating to that list? > > > MytodolisthasMany todoitems and my todoitems belongstotodolist > > > Thanks for any pointers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
