Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : CommissioningBodyPracticeAssignment | ||
return | CommissioningBodyPracticeAssignment | the static model class |
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; }