public function loadProjectMentorForApproval($id)
 {
     $params = array('user_id' => $id, 'status' => 'Mentor');
     $model = ApplicationProjectMentor::model()->findByAttributes($params);
     return $model;
 }
 public function loadModelByUser($id)
 {
     $params = array('user_id' => $id);
     $model = ApplicationProjectMentor::model()->findByAttributes($params);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }