/** * 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; }