Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function getFieldMapping($fieldName)
 {
     if (!isset($this->fieldMappings[$fieldName])) {
         throw MappingException::mappingNotFound($this->name, $fieldName);
     }
     return parent::getFieldMapping($fieldName);
 }
Esempio n. 2
0
 /**
  * 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];
 }