Florian Eisenmenger hace 1 año
padre
commit
93b5239c7b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/Mapper/DocumentApiToEntityMapper.php

+ 4
- 0
src/Mapper/DocumentApiToEntityMapper.php Ver fichero

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


Cargando…
Cancelar
Guardar