public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('name', 'required'), array('service_subspecialty_assignment_id', 'length', 'max' => 10), array('pas_code', 'length', 'max' => 20), array('name', 'length', 'max' => 40), array('name, pas_code, subspecialty_id, consultant_id, active', 'safe'), array('id, service_subspecialty_assignment_id, pas_code, name', 'safe', 'on' => 'search'));
}