diff --git a/app/common/Implement/Repository/Mapper/DateTime.php b/app/common/Implement/Repository/Mapper/DateTime.php index 85ad2f1..bbeb388 100644 --- a/app/common/Implement/Repository/Mapper/DateTime.php +++ b/app/common/Implement/Repository/Mapper/DateTime.php @@ -9,7 +9,7 @@ class DateTime extends Mapper public function __construct(string $column, ?string $property = null) { $this->setFunction(function($data) use ($column) { - return new DateTimeImmutable($data[$column]); + return new DateTimeImmutable($data[$column] ?? ''); }); if ($property !== null) { $this->setProperty($property);