public function actionDeleteOperators() { $criteria = new CDbCriteria(); $criteria->addInCondition('id', $_POST['operators']); OphTrLaser_Laser_Operator::model()->deleteAll($criteria); echo '1'; }
public function getSurgeons() { if (!$this->operatorlist) { $this->operatorlist = array(); foreach (OphTrLaser_Laser_Operator::model()->with('operator')->findAll(array('order' => 'first_name asc, last_name asc')) as $laser_operator) { $this->operatorlist[] = $laser_operator->operator; } } return $this->operatorlist; }