title: Check for validation errors in twig template
body: <p>My project uses Symfony with Twig as template engine. I have an embedded form in which I do some validation. I want to show validation like this: </p>
  
  <pre><code>{% if not form.field.vars.valid %}
       &lt;span style='color: red;'&gt;{{ form_label(form.field) }}&lt;/span&gt;
  {% else %}
      {{ form_label(form.field) }}
  {% endif %}
  </code></pre>
  
  <p>The case is that form.field.vars.valid is always valid even when there are errors.
  I know form validation is working because I debbuged and seen there where errors reported to the form. Also, after submiting the form, Symfony correctly renders the red border around the field when it has focus. But I want to provide a more clear visual reference to the user. 
  I also tried this with form.field.vars.errors|length > 0 and but it always return zero length even with the errors.</p>
  
  <p>I seen some references to error_bubblig and I have tried to enable/disable it both for form and for specific fields in the form class and it didn't have any effects on form.field.vars.valid or form.field.vars.errors|length.</p>
  
  <p>My project used Symfony 2.3.6 and in order to solve this I upgraded to 2.3.22, then do 2.6 and the problem persists.</p>
  
  <p>Any help apreciated. Thanks</p>
  
  <p>Also can someone can point me to error_bubbling documentation/examples ? Searching for this problem I've seen some references to it, but could't find a good explanation to it.</p>