From a90dad9492704acf1a593c2c28a0164a68f1141a Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Thu, 7 Mar 2024 10:05:38 +0100 Subject: [PATCH] fix posting --- src/Mapper/CommentEntityToApiMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ]);