tableName()." where paper_id = {$paperId}"; $info = $this->getCommandBuilder()->createSqlCommand($sql)->queryAll(); $logicType = array(); $largeTopicMethod = array(); if($info){ foreach($info as $value){ if($value['logic_type_second'] > 0){ $value['logic_type'] .= '_'.$value['logic_type_second']; } $logicType[$value['large_topic_id']] = $value['logic_type']; $largeTopicMethod[$value['large_topic_id']] = explode(',',$value['method_ids']); } unset($info); } return array($logicType,$largeTopicMethod); } }