/**
  * Retrieves the order to which an order item belongs.
  *
  * @param int order_item_id The order item.
  * @return Aelia_Order
  */
 protected function get_order_from_item($order_item_id)
 {
     // Check if the order is stored in the internal list
     $order = get_value($order_item_id, $this->items_orders);
     if (empty($order)) {
         // Cache the order after retrieving it. This will reduce the amount of queries executed
         $this->items_orders[$order_item_id] = Aelia_Order::get_by_item_id($order_item_id);
     }
     return $this->items_orders[$order_item_id];
 }