title: Phalcon ODM validation messages
body: <p>I am trying to validate data integrity via the special validation event. My Phalcon\Mvc\Collection model implements the validation() method with some Phalcon\Mvc\Model\Validator validators. In my controller, I save() that model. If the save operation fails, I try to output the error messages via the getMessages() method of the model. In other words, I follow the examples supplied in the documentation <a href="http://docs.phalconphp.com/en/latest/reference/odm.html" rel="nofollow">http://docs.phalconphp.com/en/latest/reference/odm.html</a></p>
  
  <p>However, I get an error that the getMessages() method does not exist. My Phalcon version is 0.7.0. I checked the API <a href="http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Collection.html" rel="nofollow">http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Collection.html</a>, and it does not show a getMessages() method. I also ran a reflection test on the Phalcon\Mvc\Collection class, and that observation was confirmed.</p>
  
  <p>The documentation also states that we can implement our own validators using Phalcon\Mvc\Collection\Validator. However, it appears that this class does not exist.</p>
  
  <p>So, my questions are:</p>
  
  <ol>
  <li>How do I show the error messages that are a result of a validation?</li>
  <li>How do I create custom validators?</li>
  <li>Is Phalcon\Mvc\Model\Validator\Uniqueness validator NOSQL compatible?</li>
  </ol>
  
  <p>Thank you for your time.</p>