title: Magento event not triggered when order cancel programmatically
body: <p>I am running a script to cancel order automatically.
  My script looks something like this.</p>
  
  <pre><code>$order-&gt;cancel()-&gt;save();
  </code></pre>
  
  <p>The problem with this is that, it cancels order correctly but does not seem to dispatch <code>order_cancel_after</code> event.</p>
  
  <p>How should I solve this, can I dispatch this event in my script? Why is this cancel action different from click the cancel button in the backend order page?</p>