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