getAssociation() public method

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