addCondition("exam_id = '". $exam_id ."'"); $sme_info = getAttributes($this->findAll($criteria)); if($sme_info){ foreach($sme_info as $value){ $stu_rs_ids[] = $value['sptr_id']; } } return $stu_rs_ids; } }