Re: question about related model data

2007-08-02 Thread NOSLOW
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

Re: question about related model data

2007-07-31 Thread Grant Cox
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