/** * {@inheritDoc} */ public function getFieldMapping($fieldName) { if (!isset($this->fieldMappings[$fieldName])) { throw MappingException::mappingNotFound($this->name, $fieldName); } return parent::getFieldMapping($fieldName); }
/** * Gets the mapping of an association. * * @param string $fieldName The field name that represents the association in * the object model. * @return Doctrine\ORM\Mapping\AssociationMapping The mapping. */ public function getAssociationMapping($fieldName) { if (!isset($this->associationMappings[$fieldName])) { throw MappingException::mappingNotFound($this->name, $fieldName); } return $this->associationMappings[$fieldName]; }