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