/home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types
Edit: /home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types/VarDateTimeType.php (901B)
0 it is necessary to use this type.
*/
class VarDateTimeType extends DateTimeType
{
/**
* {@inheritdoc}
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if ($value === null || $value instanceof DateTime) {
return $value;
}
$val = date_create($value);
if ($val === false) {
throw ConversionException::conversionFailed($value, $this->getName());
}
return $val;
}
}