/**
  *
  * @return /ReviewEvaluationForm 
  */
 public function getReviewEvaluationForm($options = array())
 {
     if ($this->reviewEvaluationForm == null) {
         $form = new ReviewEvaluationForm(array(), $options);
         $form->setUser($this->getUser());
         return $form;
     } else {
         return $this->reviewEvaluationForm;
     }
 }
 /**
  *
  * @return boolean 
  */
 public function saveForm($request)
 {
     $review = parent::saveForm($request);
     if (strlen($this->getValue('hrAdminComments')) > 0) {
         $review->setFinalComment($this->getValue('hrAdminComments'));
     }
     if (strlen($this->getValue('finalRating')) > 0) {
         $review->setFinalRate(round($this->getValue('finalRating'), 2));
     }
     if (strlen($this->getValue('completedDate')) > 0) {
         $review->setCompletedDate(date("Y-m-d", strtotime($this->getValue('completedDate'))));
     }
     if ($this->getValue('evaluationsAction') == "complete") {
         $review->setStatusId($this->getReviewStatusFactory()->getStatus('approved')->getStatusId());
     }
     $review->save();
 }