public static model ( $className = __CLASS__ ) : EventIssue | ||
return | EventIssue | the static model class |
public static function model($className = __CLASS__)
{
return parent::model($className);
}
/** * Deletes issues for this event before calling the parent delete method * Does not handle the removal of elements and will therefore fail if this has not been handled before being called. * * @return bool * * @see parent::delete() */ public function delete() { // Delete related EventIssue::model()->deleteAll('event_id = ?', array($this->id)); return parent::delete(); }