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 relationship
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 PROTEC
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
Is $this->Model->del($id); supposed to be recursive to hasMany
relationships? I seem to be getting inconsistent results.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send