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

isSingleValuedEmbed() public method

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