addCondition("exam_id = {$examId}"); $criteria->addCondition("product_type = {$productType}"); $result = getAttributes($this->findAll($criteria)); return $result; } }