/**
  * Met à jour l'entité Comment
  * @param \Blog\Model\Entity\Comment $commentEntity
  * @return \Blog\Model\Entity\Comment
  */
 public function updateCommentEntity(Comment $commentEntity)
 {
     $commentEntity->setUpdated(new \DateTime());
     $this->_em->flush();
     return $commentEntity;
 }
 /**
  * @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;
 }