/**
  * INTERNAL:
  * Adds an association mapping without completing/validating it.
  * This is mainly used to add inherited association mappings to derived classes.
  *
  * @param array $mapping
  * @throws MappingException
  * @return void
  */
 public function addInheritedAssociationMapping(array $mapping)
 {
     if (isset($this->associationMappings[$mapping['fieldName']])) {
         throw MappingException::duplicateAssociationMapping($this->name, $mapping['fieldName']);
     }
     $this->associationMappings[$mapping['fieldName']] = $mapping;
 }
 /**
  * INTERNAL:
  * Adds an association mapping without completing/validating it.
  * This is mainly used to add inherited association mappings to derived classes.
  *
  * @param AssociationMapping $mapping
  * @param string $owningClassName The name of the class that defined this mapping.
  */
 public function addInheritedAssociationMapping(AssociationMapping $mapping)
 {
     if (isset($this->associationMappings[$mapping->sourceFieldName])) {
         throw MappingException::duplicateAssociationMapping($this->name, $mapping->sourceFieldName);
     }
     $this->associationMappings[$mapping->sourceFieldName] = $mapping;
 }