DDC-179 - Fixed issue with persistance of date fields by moving ! operator to the convertToPhpValue method.
This commit is contained in:
parent
0a9876b2e8
commit
b521b49402
@ -1719,7 +1719,7 @@ abstract class AbstractPlatform
|
||||
*/
|
||||
public function getDateFormatString()
|
||||
{
|
||||
return '!Y-m-d';
|
||||
return 'Y-m-d';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -30,6 +30,6 @@ class DateType extends Type
|
||||
public function convertToPHPValue($value, AbstractPlatform $platform)
|
||||
{
|
||||
return ($value !== null)
|
||||
? \DateTime::createFromFormat($platform->getDateFormatString(), $value) : null;
|
||||
? \DateTime::createFromFormat('!'.$platform->getDateFormatString(), $value) : null;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user