/** * Override of UcAddressesSchemaAddress::getField(). * * Getting some of the schema fields differently. * * @param string $fieldName * The name of the field whose value we want. * * @access public * @return mixed * The field value. * @throws UcAddressInvalidFieldException */ public function getField($fieldName) { switch ($fieldName) { case 'aid': return $this->getId(); case 'uid': return $this->getUserId(); } return parent::getField($fieldName); }