ソースを参照

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



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