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

isCollectionValuedEmbed() public method

Checks whether the class has a mapped embedded document for the specified field and if yes, checks whether it is a collection-valued association (to-many).
public isCollectionValuedEmbed ( string $fieldName ) : boolean
$fieldName string
return boolean TRUE if the association exists and is collection-valued, FALSE otherwise.
    public function isCollectionValuedEmbed($fieldName)
    {
        return isset($this->fieldMappings[$fieldName]['association']) && $this->fieldMappings[$fieldName]['association'] === self::EMBED_MANY;
    }
ClassMetadataInfo