/** {@inheritdoc} */ public function getAssociationMapping($name) { if (!$this->classMetadata->hasAssociation($name)) { throw new MetadataException("Association '{$name}' not found in class '{$this->getClass()}'."); } return $this->classMetadata->getFieldMapping($name); }
/** {@inheritdoc} */ public function hasAssociation($fieldName) { return $this->classMetadata->hasAssociation($fieldName); }