- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
public function beforeDelete($event=null)
{
foreach($this->outers as $outer)
$outer->delete();
Subscribe::model()->deleteAllByAttributes(array('user_id'=>$this->user_id));
return self::beforeDelete($event);
}