|
|
|
@@ -63,6 +63,8 @@ class DocumentApiToEntityMapper implements MapperInterface |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]) |
|
|
|
); |
|
|
|
} else { |
|
|
|
$entity->setPartner(null); |
|
|
|
} |
|
|
|
if ($dto->productIri !== null) { |
|
|
|
$entity->setProduct( |
|
|
|
@@ -70,6 +72,8 @@ class DocumentApiToEntityMapper implements MapperInterface |
|
|
|
MicroMapperInterface::MAX_DEPTH => 1, |
|
|
|
]) |
|
|
|
); |
|
|
|
} else { |
|
|
|
$entity->setProduct(null); |
|
|
|
} |
|
|
|
if ($dto->documentObject?->getId() !== $entity->getDocumentObject()?->getId()) { |
|
|
|
$entity->setDocumentObject($dto->documentObject); |
|
|
|
|