/**
  * Action to save the comment to the model
  * @return null
  */
 public function saveCommentAction()
 {
     $form = $this->createForm();
     if (!$form->isSubmitted()) {
         $this->response->setRedirect($this->request->getBasePath());
         return;
     }
     try {
         $comment = $form->getComment();
         $comment->objectType = $this->objectType;
         $comment->objectId = $this->objectId;
         if (!$comment->id && $this->user) {
             $comment->author = $this->user->getUserId();
         }
         $this->models[CommentModel::NAME]->save($comment);
         $this->addInformation(self::TRANSLATION_MESSAGE_SAVED);
         $this->response->setRedirect($this->request->getBasePath());
         return;
     } catch (ValidationException $e) {
         $form->setException($e);
     }
     $this->setCommentsView($form);
 }