public function getConfigFieldValues() { $c = new Criteria(); $c->add(FieldValuePeer::CONFIG_ID, $this->getId()); $fieldValues = FieldValuePeer::doSelect($c); $resultArr = array(); foreach ($fieldValues as $v) { $field = ConfigFieldPeer::retrieveByPK($v->getFieldId()); $resultArr[$field->getId()] = $v->getValue(); } return $resultArr; }