title: $form->get('element') in ZF2 returns NULL
body: <p>I have a form for adding user.
  The problem is: I recieve NULL when trying to get the form element from my Controller.
  Here is the form:</p>
  
  <pre><code>public function __cunstruct($name = null)
  {
      parent::__construct('user');
      $this-&gt;setAttribute('method', 'post');
  
      $this-&gt;add(array(
          'name' =&gt; 'Id',
          'attributes' =&gt; array(
              'type'  =&gt; 'text',
          ),
          'options' =&gt; array(
              'label' =&gt; 'id',
          ),
      ));
  
      $this-&gt;add(array(
          'type' =&gt; 'Zend\Form\Element\Hidden',
          'name' =&gt; 'IsCreate',
          'attributes' =&gt; array(
              'value' =&gt; 'false'
          )
      ));
  
      $this-&gt;add(array(
          'name' =&gt; 'Username',
          'attributes' =&gt; array(
              'type' =&gt; 'text',
              'id' =&gt; 'username'
          ),
          'options' =&gt; array(
              'label' =&gt; 'Name'
          ),
      ));
  
      $this-&gt;add(array(
          'name' =&gt; 'Password',
          'attributes' =&gt; array(
              'type' =&gt; 'password'
          ),
          'options' =&gt; array(
              'label' =&gt; 'Password'
          )
      ));
  
      $this-&gt;add(array(
          'name' =&gt; 'ConfirmPassword',
          'attributes' =&gt; array(
              'type' =&gt; 'password'
          ),
          'options' =&gt; array(
              'label' =&gt; 'Confirm password'
          )
      ));
  
      $this-&gt;add(array(
          'name' =&gt; 'TypeId',
          'type'  =&gt; 'Zend\Form\Element\Select',
          'options' =&gt; array(
              'label' =&gt; 'Type'
          )
      ));
  
      $this-&gt;add(array(
          'name' =&gt; 'submit',
          'attributes' =&gt; array(
              'type' =&gt; 'submit',
              'valut' =&gt; 'Create',
              'class' =&gt; 'btn btn-primary'
          )
      ));
  }
  </code></pre>
  
  <p>And here is Controller example:</p>
  
  <pre><code>public function indexAction()
  {
      $form = new AddUserForm();
      var_dump($form);
      echo "&lt;BR&gt;";
      echo "&lt;BR&gt;";
      var_dump($form-&gt;get('TypeId'));
  }
  </code></pre>
  
  <p>In <code>var_dump($form)</code> I recieve array, but there is no data:</p>
  
  <pre><code>object(WebAdmin\Form\EditUserForm)#306 (27) { ["attributes":protected]=&gt; array(1) { ["method"]=&gt; string(4) "POST" } ["bindAs":protected]=&gt; int(17) ["bindOnValidate":protected]=&gt; int(0) ["baseFieldset":protected]=&gt; NULL ["data":protected]=&gt; NULL ["filter":protected]=&gt; NULL ["useInputFilterDefaults":protected]=&gt; bool(true) ["hasAddedInputFilterDefaults":protected]=&gt; bool(false) ["hasValidated":protected]=&gt; bool(false) ["isValid":protected]=&gt; bool(false) ["isPrepared":protected]=&gt; bool(false) ["preferFormInputFilter":protected]=&gt; bool(false) ["wrapElements":protected]=&gt; bool(false) ["validationGroup":protected]=&gt; NULL ["factory":protected]=&gt; NULL ["byName":protected]=&gt; array(0) { } ["elements":protected]=&gt; array(0) { } ["fieldsets":protected]=&gt; array(0) { } ["messages":protected]=&gt; array(0) { } ["iterator":protected]=&gt; object(Zend\Stdlib\PriorityQueue)#307 (3) { ["queueClass":protected]=&gt; string(28) "Zend\Stdlib\SplPriorityQueue" ["items":protected]=&gt; array(0) { } ["queue":protected]=&gt; NULL } ["hydrator":protected]=&gt; NULL ["object":protected]=&gt; NULL ["useAsBaseFieldset":protected]=&gt; bool(false) ["label":protected]=&gt; NULL ["labelAttributes":protected]=&gt; NULL ["options":protected]=&gt; array(0) { } ["value":protected]=&gt; NULL } 
  </code></pre>
  
  <p>In <code>var_dump($form-&gt;get('TypeId'))</code> I recieve just NULL.</p>
  
  <p>Therefore when I am trying to add the user, I have an error: </p>
  
  <pre><code>Fatal error: Call to a member function setAttribute() on a non-object in /controller_path/ on line 72
  </code></pre>
  
  <p>The line is: <code>$form-&gt;get('TypeId')-&gt;setAttribute('options', $options);</code></p>