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