title: Is it possible to update order items quantity in Magento?
body: <p>I have tried to change magento order items quantity, but It doesn't work. Is it possible to change order items quantity using Magento own APIs, or do i need to use some own SQL in order to change order item quanties?</p>
  
  <pre><code>$order = Mage::getModel('sales/order')-&gt;loadByIncrementId($orderId);
  foreach($order-&gt;getAllItems() as $item)
  {
      $item-&gt;setToCancel(5);
      $item-&gt;setToRefund(5);
      $item-&gt;setToInvoice(5);
      $item-&gt;setQtyToShip(5);
      $item-&gt;setQty(5);
      $item-&gt;save();  
  }
  
  // Why qtys are still same and not 5 as set before???
  foreach($order-&gt;getAllItems() as $item)
  {
      echo "Id : " . $item-&gt;getId() . "\r\n" .
          "QtyToCancel : " . $item-&gt;getQtyToCancel() . "\r\n".
          "QtyToRefund : " . $item-&gt;getQtyToRefund() . "\r\n".
          "QtyToInvoice : " . $item-&gt;getQtyToInvoice() . "\r\n".
          "QtyToShip : " . $item-&gt;getQtyToShip() . "\r\n".
          "Qty : " . $item-&gt;getQty() . "\r\n";                
  }
  </code></pre>