public function releaseComment(Comment $comment) { $comment->release(); $this->em->persist($comment)->flush(); $this->onSuccessCommentRelease($comment); }