title: Symfony type validation not working - always returns 'This value should not be blank'
body: <p>I'm having some trouble with Symfony form validation in 2.1.7.</p>
  
  <p>When I bind my data to a form, all I get for an error is 'This value should not be blank' - I can't work out where I'm going wrong? It seems as if the data isn't binding to the form if it isn't valid, but instead of giving me the expected error, it just sees it as blank.</p>
  
  <p>i.e. for the start field, I submit a string "this should be a date" - the error I get is for NotBlank, where as it should be for the not a date. </p>
  
  <p>When stepping through the form bind process I noticed the following:</p>
  
  <p>When the <code>Form/Form.php</code> hits the following line, the submittedData for date (which is a string - "2013-01-01") is set as an empty array - as soon as the loop is hit the array key is obviously not set, which is where the problem seems to stem from. </p>
  
  <p>If I set a field to be an int, then submit a string, the <code>viewToNorm</code> method throws an error which when caught sets <code>synchronized = false</code> and the modelData and normData aren't bound. </p>
  
  <p><strong>Entity:</strong>
      
  
  <pre><code>namespace HvH\DealsBundle\Entity;
  
  class Deal
  {
      private $name;
      private $start;
  
      // getters and setters here...
  }
  </code></pre>
  
  <p><strong>Validation:</strong></p>
  
  <pre><code># src/HvH/DealsBundle/Resources/config/validation.yml
  HvH\DealsBundle\Entity\Deal:
      properties:
          name:
              - NotBlank: ~
              - Type:
                  type: string
          start:
              - NotBlank: ~
              - Date: ~
  </code></pre>
  
  <p><strong>FormType:</strong></p>
  
  <pre><code>&lt;?php
  
  namespace HvH\DealsBundle\Form;
  
  use Symfony\Component\Form\AbstractType;
  use Symfony\Component\Form\FormBuilderInterface;
  use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  
  
  class DealType extends AbstractType
  {
  
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
              -&gt;add('name', null, array('description' =&gt; 'name'))
              -&gt;add('start', null, array('description' =&gt; 'start'))
          ;
      }
  
  
      public function setDefaultOptions(OptionsResolverInterface $resolver)
      {
          $resolver-&gt;setDefaults(array(
              'data_class' =&gt; 'HvH\DealsBundle\Entity\Deal',
              'csrf_protection' =&gt; false,
              'cascade_validation' =&gt; false // have also tried this with true
          ));
      }
  
      public function getName()
      {
          return 'deal';
      }
  
  
  }
  </code></pre>