浏览代码

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



正在加载...
取消
保存