title: Symfony : CreateForm / Why my textarea do not appear?
body: <p>I have a problem to display a textarea from a form I've created with Symfony.</p>
  
  <p>The textarea appears in html but it has no <code>display: block</code> in the css. It has nothing in the css, to be clear.</p>
  
  <p>When I add a <code>display:block</code> in the css myself, it simply stripped by chrome/firefox.</p>
  
  <p>The problem only happens when I create the form from a separate Class, not when I create it in controller's function.</p>
  
  <p>Here is my code: </p>
  
  <p>AdController.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Controller;
  
  
  use App\Entity\Ad;
  use App\Form\AdType;
  use App\Repository\AdRepository;
  use Symfony\Component\HttpFoundation\Response;
  use Symfony\Component\Routing\Annotation\Route;
  use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  
  class AdController extends AbstractController
  {
  
  
      /**
       * Create ad
       *
       * @Route("/ads/new", name="ads_create")
       * 
       * @return Response
       */
      public function create(){
  
           $ad = new Ad();
  
           $form = $this-&gt;createForm(AdType::class, $ad);
  
  
          return $this-&gt;render('ad/new.html.twig', [
              'form' =&gt; $form-&gt;createView()
          ]);
      }
  
  
  }
  </code></pre>
  
  <p>AdType.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Form;
  
  use App\Entity\Ad;
  use Symfony\Component\Form\AbstractType;
  use Symfony\Component\Form\FormBuilderInterface;
  use Symfony\Component\OptionsResolver\OptionsResolver;
  use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  
  class AdType extends AbstractType
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
              -&gt;add('title')
              -&gt;add('slug')
              -&gt;add('price')
              -&gt;add('introduction')
              -&gt;add('content', TextareaType::class, [
                  'attr' =&gt; array('cols' =&gt; '5', 'rows' =&gt; '5')])
              -&gt;add('coverImage')
              -&gt;add('rooms')
          ;
      }
  
      public function configureOptions(OptionsResolver $resolver)
      {
          $resolver-&gt;setDefaults([
              'data_class' =&gt; Ad::class,
          ]);
      }
  }
  </code></pre>
  
  <p>And twig :</p>
  
  <pre><code>{% extends 'base.html.twig' %}
  {% form_theme form 'bootstrap_4_layout.html.twig' %}
  
  {% block title %}Create ad{% endblock %}
  
  {% block body %}
      &lt;div class="container"&gt;
          &lt;h1&gt;lorem ipsum&lt;/h1&gt;
  
  
          {{form_start(form)}}
  
              {{ form(form) }}
  
  
  
          {{form_end(form)}}
  
      &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>I tried a lot of things but I still don't understand how to solve this problem. Do someone have an idea about it ?</p>
  
  <p>Thanks in advance !</p>