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