/**
  * Add New comments to performance review
  * @return unknown_type
  */
 public function addComment(PerformanceReview $performanceReview, $comment, $user)
 {
     try {
         $performanceReviewComment = new PerformanceReviewComment();
         $performanceReviewComment->setPrId($performanceReview->getId());
         $performanceReviewComment->setComment($comment);
         if (is_numeric($user)) {
             $performanceReviewComment->setEmployeeId($user);
         }
         $performanceReviewComment->setCreateDate(date('Y-m-d'));
         $performanceReviewComment->save();
     } catch (Exception $e) {
         throw new AdminServiceException($e->getMessage());
     }
 }
 /**
  * Update status of performance review
  * @param array $clues
  * @param array $offset
  * @param array $limit
  * @throws DaoException
  */
 public function updatePerformanceReviewStatus(PerformanceReview $performanceReview, $status)
 {
     try {
         $q = Doctrine_Query::create()->update('PerformanceReview')->set("state='?'", $status)->where("id = ?", $performanceReview->getId());
         $q->execute();
         return true;
     } catch (Exception $e) {
         throw new DaoException($e->getMessage());
     }
 }