瀏覽代碼

fix posting

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

+ 1
- 1
src/Mapper/CommentEntityToApiMapper.php 查看文件

@@ -44,7 +44,7 @@ class CommentEntityToApiMapper implements MapperInterface
]);
$dto->ownerName = $entity->getOwner()?->getFirstName()." ".$entity->getOwner()?->getLastName();

$dto->posting = $this->microMapper->map($entity->getPosting(), PostingApi::class, [
$dto->post = $this->microMapper->map($entity->getPosting(), PostingApi::class, [
MicroMapperInterface::MAX_DEPTH => 1,
]);



Loading…
取消
儲存