소스 검색

bugfix

master
Florian Eisenmenger 1 년 전
부모
커밋
995a237f53
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +8
    -6
      src/Mapper/TaskNoteEntityToApiMapper.php

+ 8
- 6
src/Mapper/TaskNoteEntityToApiMapper.php 파일 보기

@@ -47,13 +47,15 @@ class TaskNoteEntityToApiMapper implements MapperInterface
MicroMapperInterface::MAX_DEPTH => 1,
]);

$dto->contact = $this->microMapper->map($entity->getContact(), ContactApi::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);
if ($entity->getContact() !== null) {
$dto->contact = $this->microMapper->map($entity->getContact(), ContactApi::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);

$dto->contactIri = $this->microMapper->map($entity->getContact(), ContactApi::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);
$dto->contactIri = $this->microMapper->map($entity->getContact(), ContactApi::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);
}

$dto->contactType = $entity->getType();



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