|
|
|
@@ -61,10 +61,12 @@ class PostingEntityToApiMapper implements MapperInterface |
|
|
|
$dto->productName = $entity->getProduct()?->getName(); |
|
|
|
|
|
|
|
$dto->contact = null; |
|
|
|
$dto->contactName = null; |
|
|
|
if ($entity->getContact() !== null) { |
|
|
|
$dto->contact = $this->microMapper->map($entity->getContact(), ContactApi::class, [ |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]); |
|
|
|
$dto->contactName = $entity->getContact()->getFirstName() . ' ' . $entity->getContact()->getLastName(); |
|
|
|
} |
|
|
|
|
|
|
|
$dto->sale = null; |
|
|
|
|