瀏覽代碼

wi

master
Daniel 1 年之前
父節點
當前提交
240725eba4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/Mapper/DocumentApiToEntityMapper.php

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

@@ -57,14 +57,14 @@ class DocumentApiToEntityMapper implements MapperInterface

$entity->setName($dto->name);
$entity->setDescription($dto->description);
if ($dto->partner !== null) {
if ($dto->partnerIri !== null) {
$entity->setPartner(
$this->microMapper->map($dto->partnerIri, Partner::class, [
MicroMapperInterface::MAX_DEPTH => 1,
])
);
}
if ($dto->product !== null) {
if ($dto->productIri !== null) {
$entity->setProduct(
$this->microMapper->map($dto->productIri, Product::class, [
MicroMapperInterface::MAX_DEPTH => 1,


Loading…
取消
儲存