title: The best way to collect all Yii model validation errors
body: <p>Is there any inline method to collect all validation errors?
  Now I'm doing this:</p>
  
  <pre><code>$errors = '';
  foreach($model-&gt;attributeNames() as $attr)
  {
      $errors .= $model-&gt;hasErrors($attr) ? $model-&gt;getErrors($attr) : '';
  }
  </code></pre>
  
  <p>I think this is redundant.</p>