EventIssue::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : EventIssue
return EventIssue the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Esempio n. 1
0
 /**
  * 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();
 }