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

getDatabaseIdentifierValue() public method

Casts the identifier to its database type.
public getDatabaseIdentifierValue ( mixed $id ) : mixed
$id mixed
return mixed $id
    public function getDatabaseIdentifierValue($id)
    {
        $idType = $this->fieldMappings[$this->identifier]['type'];
        return Type::getType($idType)->convertToDatabaseValue($id);
    }
ClassMetadataInfo