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

hasReference() public method

Checks whether the class has a mapped association with the given field name.
public hasReference ( string $fieldName ) : boolean
$fieldName string
return boolean
    public function hasReference($fieldName)
    {
        return isset($this->fieldMappings[$fieldName]['reference']);
    }
ClassMetadataInfo