title: Custom Events Manager in Phalcon\MVC\Models throws errors
body: <p>I am trying to use Events Manager example as described at <a href="http://docs.phalconphp.com/en/latest/reference/models.html#using-a-custom-events-manager" rel="nofollow">http://docs.phalconphp.com/en/latest/reference/models.html#using-a-custom-events-manager</a>.</p>
  
  <pre><code>class Products extends Phalcon\Mvc\Model
  {
      public function initialize()
      {
          $eventsManager = new Phalcon\Events\Manager();
  
          $eventsManager-&gt;attach('model', function($event, $robot) {
              // Do something (or nothing at all).
              return true;
          });
          $this-&gt;setEventsManager($eventsManager);
  
      $this-&gt;setSource('products');
      }
  }
  
  $o = Products::findFirst();
  $o-&gt;we = 5;
  $o-&gt;save();
  </code></pre>
  
  <p>This results in the following error:</p>
  
  <p><strong>Script raised E_ERROR with message "Phalcon\Mvc\Model\Manager::notifyEvent(): Call to method fire() on a non-object"</strong></p>
  
  <p>What am I missing in EventsManager setup?</p>
  
  <p>I am on Phalcon 1.3.0.</p>
  
  <p>Thanks,
  Temuri</p>