Procházet zdrojové kódy

task: due date

master
Florian Eisenmenger před 2 roky
rodič
revize
3d13f038c2
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      src/Mapper/TaskApiToEntityMapper.php

+ 4
- 1
src/Mapper/TaskApiToEntityMapper.php Zobrazit soubor

@@ -64,7 +64,10 @@ class TaskApiToEntityMapper implements MapperInterface
assert($entity instanceof Task);
$entity->setHeadline($dto->headline);
$entity->setDescription($dto->description);
$entity->setDueAt($dto->dueAt);
$dueAt = $dto->dueAt !== null ?
\DateTimeImmutable::createFromFormat('Y-m-d', $dto->dueAt) :
null;
$entity->setDueAt($dueAt);
$entity->setPartner(null);
if ($dto->partner !== null) {
assert($dto->partner instanceof PartnerApi);


Načítá se…
Zrušit
Uložit