Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Doctrine
ODM
MongoDB
Mapping
Types
Type
convertToDatabaseValue
Doctrine\ODM\MongoDB\Mapping\Types\Type::convertToDatabaseValue PHP Method
Type Class Documentation
Show file
Open project: pmjones/php-framework-benchmarks
convertToDatabaseValue()
public
method
Converts a value from its PHP representation to its database representation of this type.
public
convertToDatabaseValue
(
mixed
$value
) :
mixed
$value
mixed
The value to convert.
return
mixed
The database representation of the value.
public function convertToDatabaseValue($value) { return $value; }
Type
addType
convertToDatabaseValue
convertToPHPValue
getType
getTypesMap
hasType
overrideType
registerType