getAssociation() public method

public getAssociation ( $fieldName ) : array
return array the association mapping with the field of this name
Ejemplo n.º 1
0
 /**
  * @depends testClassName
  *
  * @expectedException \Doctrine\ODM\PHPCR\Mapping\MappingException
  */
 public function testGetAssociationNonexisting(ClassMetadata $cm)
 {
     $cm->getAssociation('nonexisting');
 }