title: Kohana 3.2 custom validation error messages for one model or a field
body: <p>I have my general validation messages in <code>application/messages/validation.php</code> and I need a custom message when I'm validating the 'password' field for my User model. This is my initial code:</p>
  
  <pre><code>try
  {
    ORM::factory('user', Auth::instance()-&gt;get_user())-&gt;update_user($values);
  }
  catch (ORM_Validation_Exception $e)
  {
    $errors = Arr::merge($errors, $e-&gt;errors(TRUE));
    if (Arr::get($errors, '_external'))
    {
      $errors = Arr::merge($errors, Arr::get($errors, '_external'));
      unset($errors['_external']);
    }
  }
  </code></pre>
  
  <p>And I tried: <code>$e-&gt;errors('')</code>, <code>$e-&gt;errors()</code>, copying <code>application/messages/validation.php</code> to <code>application/messages/user.php</code>, putting <code>'password' =&gt; array('regex' =&gt; 'message')</code> inside of those files, I tried mixing many possibilities of all this. I read the source code for the exception class, but I can't understand what's wrong. According to <a href="http://forum.kohanaframework.org/discussion/9775/custom-validation-error-messages-in-kohana-3./p1" rel="nofollow">this</a> post, it can be done, but didn't worked for me that way.
  I appreciate help. Thanks!</p>