소스 검색

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,


불러오는 중...
취소
저장