hi,
i have a parent model that hasMany child models.
when the child model is deleted, i need to delete the images
associated with the child model.
hence i want to place it in the afterDelete callback of the child
model.
now the association of parent with child is like this:
var $hasMany = array(
'Child' => array(
'className' => 'Child',
'foreignKey' => 'parent_id',
'dependent' => true,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => true,
'finderQuery' => '',
'counterQuery' => ''
),
);
how do i activate the child afterDelete when i delete parent?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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