title: Zend Framework 2 RC3 Zend\Form#getData()
body: <p>I wonder if I'm doing something wrong or if this is a bug in ZF2: When i'm trying to set some data on a form, validate it and retrieve the data it's just an empty array.</p>
  
  <p>I extracted this code from some classes to simplify the problem</p>
  
  <pre><code>    $form = new \Zend\Form\Form;
      $form-&gt;setInputFilter(new \Zend\InputFilter\InputFilter);
      $form-&gt;add(array(
          'name' =&gt; 'username',
          'attributes' =&gt; array(
              'type'  =&gt; 'text',
              'label' =&gt; 'Username',
          ),
     ));
  
     $form-&gt;add(array(
          'name' =&gt; 'submit',
          'attributes' =&gt; array(
              'type'  =&gt; 'submit',
              'value' =&gt; 'Register',
          ),
      ));
  
      if ($this-&gt;getRequest()-&gt;isPost()) {
  
          $form-&gt;setData($this-&gt;getRequest()-&gt;getPost()-&gt;toArray());
          if ($form-&gt;isValid()) {
  
              echo '&lt;pre&gt;';
              print_r($form-&gt;getData());
              print_r($form-&gt;getMessages());
              echo '&lt;/pre&gt;';
          }
      }
  </code></pre>
  
  <p>both <code>print_r()</code>s show empty arrays. I don't get any Data out of the form as well as no  messages. Is it my fault or ZF2's?</p>