/**
  * Get {@link FlightBooking} by the identifier 'id' found in the URL.
  * @return FlightBooking {@link FlightBooking} instance
  * @throws NotFoundException if the param or {@link FlightBooking} instance is not found
  */
 public static function getFoodOrderByGetId()
 {
     $orderId = null;
     try {
         $orderId = self::getUrlParam('id');
     } catch (Exception $ex) {
         throw new NotFoundException('No FoodOrder identifier provided.');
     }
     if (!is_numeric($orderId)) {
         throw new NotFoundException('Invalid FoodOrder identifier provided.');
     }
     $dao = new FoodOrderDao();
     $foodOrder = $dao->findByOrderId($orderId);
     if ($foodOrder === null) {
         throw new NotFoundException('Unknown FoodOrder identifier provided.');
     }
     return $foodOrder;
 }