*I am trying to delete Band and all Band's Images

$this->Band->del("$id",$cascade = true);

but getting ana error
**Notice*: Undefined index: Images in 
*/home/misiek/workspace/url/cake/libs/model/model_php5.php* on line *1009*

*Warning*: Cannot modify header information - headers already sent by 
(output started at 
/home/misiek/workspace/url/cake/libs/model/model_php5.php:1009) in 
*/home/misiek/workspace/url/cake/libs/controller/controller.php* on line 
*447***
*

class Band extends AppModel
{
    var $name = 'Band';
    var $hasMany = array('Images' =>
                   array('className' => 'Images','dependent' => true)
                   );
}

what I am doing wrong ...?
*

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to