title: Symfony 2 - Validate a field with NotBlank & Type constraints
body: <p>I am having problems validating a form component when i have added both NotBlank and Type validation to an integer field.</p>
  
  <p>My validation.yml looks like the following:</p>
  
  <pre><code>Acme\StoreBundle\Entity\Foo:
  properties:
      bar:
          - NotBlank: 
                message: You must specify a bar
          - Type:
               type: integer
               message: bar must be an integer
  </code></pre>
  
  <p>My FormType file looks like the following:</p>
  
  <pre><code>$builder-&gt;add('bar', 'integer', array(
              'label' =&gt; bar', 
              'error_bubbling' =&gt; true
  ));
  </code></pre>
  
  <p>When I type 'abc' into the field and submit, validate the form and getErrors(), the errors reported are -</p>
  
  <pre><code>This value is not valid.
  You must specify a bar.
  </code></pre>
  
  <p>any ideas whats going wrong? I'm running Symfony 2.0.10</p>