diff --git a/src/Mapper/CommentEntityToApiMapper.php b/src/Mapper/CommentEntityToApiMapper.php index 2dbbcd0..c9227a8 100644 --- a/src/Mapper/CommentEntityToApiMapper.php +++ b/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, ]);