Yes, if dependent is set to true on an association, all associated
models are deleted when this model is deleted.

On Aug 1, 9:04 am, rtanz <[EMAIL PROTECTED]> wrote:
> hi i am looking at the model part of the manual, in the SAVING RELATED
> MODEL DATA section. here there is an example of saving a new post and
> a related comment. now if the post were to be deleted at a later
> stage, would the comment be deleted automatically (provided that
> 'dependent' is set to true in the association parameters)?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to