Esempio n. 1
0
 /** {@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);
 }
Esempio n. 2
0
 /** {@inheritdoc} */
 public function hasAssociation($fieldName)
 {
     return $this->classMetadata->hasAssociation($fieldName);
 }