The last I checked, if your tables are MySQL InnoDB and have RI
defined in the DB, you can't use Cake's 'dependent' feature. Cake will
attempt delete the parent record first, then any child records. With
RI set, MySQL will throw a constraint error when the parent record
delete is attempted.
Actua
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
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