Пример #1
0
 /**
  * Finds the Salida model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $idSalida
  * @param integer $pedido_idPedido
  * @param integer $producto_idProducto
  * @return Salida the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($idSalida, $pedido_idPedido, $producto_idProducto)
 {
     if (($model = Salida::findOne(['idSalida' => $idSalida, 'pedido_idPedido' => $pedido_idPedido, 'producto_idProducto' => $producto_idProducto])) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }