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 <DJHollingwo...@gmail.com> 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 <taff.law...@googlemail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment