/**
  * Finds the DeptEmp model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $emp_no
  * @param string $dept_no
  * @return DeptEmp the loaded model
  * @throws HttpException if the model cannot be found
  */
 protected function findModel($emp_no, $dept_no)
 {
     if (($model = DeptEmp::findOne(['emp_no' => $emp_no, 'dept_no' => $dept_no])) !== null) {
         return $model;
     } else {
         throw new HttpException(404, 'The requested page does not exist.');
     }
 }