Doctrine\DBAL\Types\Type::convertToDatabaseValue
Converts a value from its PHP representation to its database representation of this type.
Signature
public function convertToDatabaseValue(mixed
$value,
AbstractPlatform
$platform )
Parameters
$value
— mixed- The value to convert.
$platform
— Doctrine\DBAL\Platforms\AbstractPlatform- The currently used database platform.
Returns
- mixed
- The database representation of the value.