Element_OphTrOperationnote_Anaesthetic::beforeDelete PHP 메소드

beforeDelete() 보호된 메소드

Need to delete associated records.
또한 보기: CActiveRecord::beforeDelete()
protected beforeDelete ( )
    protected function beforeDelete()
    {
        OphTrOperationnote_OperationAnaestheticAgent::model()->deleteAllByAttributes(array('et_ophtroperationnote_anaesthetic_id' => $this->id));
        OphTrOperationnote_AnaestheticComplication::model()->deleteAllByAttributes(array('et_ophtroperationnote_anaesthetic_id' => $this->id));
        return parent::beforeDelete();
    }