/home/techb158/ileadtechnology.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types
Edit: /home/techb158/ileadtechnology.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/VarDateTimeType.php (893B)
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) {
throw ConversionException::conversionFailed($value, $this->getName());
}
return $val;
}
}