コード例 #1
0
 public function deleteComment(WallPostComment $comm)
 {
     try {
         $this->wallService->deleteComment($comm, $this->getEntity());
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataDelete($comm->getId(), "this", $ex);
     }
     if ($this->isAjax()) {
         $this->redrawControl("commentsData");
     } else {
         $this->redirect("this");
     }
 }