From df0cf9b656f65f514d3daed03e95f0e9de86c133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Sv=C4=9Bcen=C3=BD?= Date: Sun, 6 Jan 2019 19:25:41 +0100 Subject: [PATCH] Fixed wrong timeshift when column is type of DATE --- src/Mapper/Dbal/StorageReflection/StorageReflection.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mapper/Dbal/StorageReflection/StorageReflection.php b/src/Mapper/Dbal/StorageReflection/StorageReflection.php index 89fea0b7..41f20339 100644 --- a/src/Mapper/Dbal/StorageReflection/StorageReflection.php +++ b/src/Mapper/Dbal/StorageReflection/StorageReflection.php @@ -294,7 +294,10 @@ protected function getDefaultModifiers(): array break; case 'mysql': - $types = ['DATETIME' => true]; + $types = [ + 'DATETIME' => true, + 'DATE' => true, + ]; break; case 'mssql':