title: how to get input type is number using form in symfony2?
body: <p>This is my form builder code</p>
  
  <pre><code>public function buildForm(FormBuilder $builder, array $options)
  {
      $builder-&gt;add('phoneAlternative', 'number',array('max_length'=&gt;15));
      $builder-&gt;add('emailPersonal', 'email');
      $builder-&gt;add('addressCurrent', 'textarea');
  }
  </code></pre>
  
  <p>This is html markup </p>
  
  <pre><code>&lt;input id="employee_phoneAlternative" type="text" maxlength="15" required="required" name="employee[phoneAlternative]" class="valid"&gt;
  </code></pre>
  
  <p>Any one suggest me. why input type is giving "text" since, I have given as a number. while building form. how i will get input type as "number" in symfony2 using form builder.</p>