CommissioningBodyPatientAssignment::model PHP Method

model() public static method

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

Usage Example

Ejemplo n.º 1
0
 public function canDelete()
 {
     if (CommissioningBodyPatientAssignment::model()->find('commissioning_body_id=?', array($this->id))) {
         return false;
     }
     if (CommissioningBodyPracticeAssignment::model()->find('commissioning_body_id=?', array($this->id))) {
         return false;
     }
     return true;
 }
All Usage Examples Of CommissioningBodyPatientAssignment::model