Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::hasAssociation PHP Method

hasAssociation() public method

Checks whether the class has a mapped association (embed or reference) with the given field name.
public hasAssociation ( $fieldName )
    public function hasAssociation($fieldName)
    {
        return $this->hasReference($fieldName) || $this->hasEmbed($fieldName);
    }
ClassMetadataInfo