title: Submit ignore required form row with twig
body: <p>How adding a required form row with twig</p>
  
  <p>i have used this code but not work when i submit it ignore it </p>
  
  <pre><code>{{ form_row(form.prenom,{'attr': {'required': 'required'} }) }}
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>  $candidat = new Candidat();
      $form = $this-&gt;createForm(CandidatType::class, $candidat);
      ;
  
  $this-&gt;render("cvtheque/ajouter_candidat.html.twig",['form' =&gt; $form-&gt;createView()])
  </code></pre>