瀏覽代碼

fix

master
Florian Eisenmenger 1 年之前
父節點
當前提交
93b5239c7b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      src/Mapper/DocumentApiToEntityMapper.php

+ 4
- 0
src/Mapper/DocumentApiToEntityMapper.php 查看文件

@@ -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);


Loading…
取消
儲存