|
|
@@ -57,7 +57,10 @@ class ContactApiToEntityMapper implements MapperInterface |
|
|
|
|
|
|
|
|
$entity->setFirstName($dto->firstName); |
|
|
$entity->setFirstName($dto->firstName); |
|
|
$entity->setLastName($dto->lastName); |
|
|
$entity->setLastName($dto->lastName); |
|
|
$entity->setBirthday($dto->birthday); |
|
|
|
|
|
|
|
|
$birthDay = $dto->birthday !== null ? |
|
|
|
|
|
\DateTimeImmutable::createFromFormat('Y-m-d', $dto->birthday) : |
|
|
|
|
|
null; |
|
|
|
|
|
$entity->setBirthday($birthDay); |
|
|
$entity->setImage($dto->image); |
|
|
$entity->setImage($dto->image); |
|
|
$entity->setPosition($dto->position); |
|
|
$entity->setPosition($dto->position); |
|
|
$entity->setPhone($dto->phone); |
|
|
$entity->setPhone($dto->phone); |
|
|
|