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


読み込み中…
キャンセル
保存