示例#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);
 }
示例#2
0
 /** {@inheritdoc} */
 public function hasAssociation($fieldName)
 {
     return $this->classMetadata->hasAssociation($fieldName);
 }