Re: Is del() recursive?

2006-07-17 Thread Scott Sharkey

nate wrote:
> Only if the 'dependent' association key is set to true, i.e.:
> 
> class Post extends AppModel {
> 
>var $hasMany = array(
>'Comment' => array('dependent' => true)
> );
> }

Nate: I asked almost this very same question about a week ago.  What 
about HABTM relationships, which do not (as far as I know) have the
"dependent" option.

Related: Does the beforeDelete() action get called on these "cascaded"
deletes?  From what I can see with logging, the answer seems to be "no".

-Scott



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Is del() recursive?

2006-07-17 Thread ShepherdWeb

That makes sense.  Thanks.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Is del() recursive?

2006-07-16 Thread nate

Only if the 'dependent' association key is set to true, i.e.:

class Post extends AppModel {

   var $hasMany = array(
   'Comment' => array('dependent' => true)
);
}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---