title: Don't render form field, symfony
body: <p>I don't want some fields to show. I tried it like this</p>
  
  <pre><code>{{form_start(form)}}
  {{form_widget(form)}}
  {% do form.password.setRendered %}
  {{ form_end(form) }}
  </code></pre>
  
  <p>But It doesn't work. </p>
  
  <p>This is my form class. I don't want <code>password</code> field showing.</p>
  
  <pre><code>class UserType extends AbstractType
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
                  -&gt;add('username')
                  -&gt;add('email')
                  -&gt;add('password')
                  -&gt;add('type', ChoiceType::class, array(
                      'choices' =&gt; array(
                          'User' =&gt; 'ROLE_USER',
                          'Admin' =&gt; 'ROLE_ADMIN',
                          ),
                      ))
                  -&gt;add('save', SubmitType::class)
                  ;
      }
  }
  </code></pre>