title: Model validation errors in the Ext JS 5.0 framework
body: <p>How can you get validation errors of a model, specifically in <strong>Ext JS 5.0</strong>?  As in version 4.2 we did this:</p>
  
  <pre class="lang-js prettyprint-override"><code>var rec = Ext.create("ModelName", {...});
  var errors = rec.validate();
  if (!errors.isValid()) {
      form.markInvalid(errors);
  }
  </code></pre>
  
  <p>However <a href="http://docs.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.data.Model-method-validate" rel="nofollow"><code>validate()</code></a> is now marked as deprecated in the documentation and calling it no longer returns any error messages.  I've looked at the <code>getValidation()</code> method which is introduced in 5.0 but it doesn't return any error messages which can be passed to a form component and there are no clear examples of how else to achieve this.</p>