/** * @param \Blog\Model\Entity\Comment $commentEntity * @return \Blog\Service\CommentService */ public function updateComment(array $data, Comment $commentEntity) { $commentEntity->setContent($data['content']); $this->getServiceLocator()->get('CommentRepository')->updateCommentEntity($commentEntity); return $this; }