Doctrine\DBAL\Connection::convertToDatabaseValue
Converts a given value to its database representation according to the conversion rules of a specific DBAL mapping type.
Signature
public function convertToDatabaseValue(mixed
$value,
string
$type )
Parameters
$value
— mixed- The value to convert.
$type
— string- The name of the DBAL mapping type.
Returns
- mixed
- The converted value.