|
|
|
@@ -41,10 +41,18 @@ class PartnerProductEntityToApiMapper implements MapperInterface |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]); |
|
|
|
|
|
|
|
$dto->partner = $this->microMapper->map($entity->getPartner(), PartnerApi::class, [ |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]); |
|
|
|
|
|
|
|
$dto->productIri = $dto->product = $this->microMapper->map($entity->getProduct(), ProductApi::class, [ |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]); |
|
|
|
|
|
|
|
$dto->product = $dto->product = $this->microMapper->map($entity->getProduct(), ProductApi::class, [ |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]); |
|
|
|
|
|
|
|
$dto->createdAt = $entity->getCreatedAt(); |
|
|
|
|
|
|
|
return $dto; |
|
|
|
|