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

getAssociationCollectionClass() public method

Retrieve the collectionClass associated with an association
public getAssociationCollectionClass ( string $assocName )
$assocName string
    public function getAssociationCollectionClass($assocName)
    {
        if (!isset($this->associationMappings[$assocName])) {
            throw new InvalidArgumentException("Association name expected, '" . $assocName . "' is not an association.");
        }
        if (!array_key_exists('collectionClass', $this->associationMappings[$assocName])) {
            throw new InvalidArgumentException("collectionClass can only be applied to 'embedMany' and 'referenceMany' associations.");
        }
        return $this->associationMappings[$assocName]['collectionClass'];
    }
ClassMetadataInfo