title: Symfony - Don't have form_error when removing required attr from source code
body: <p>I just noticed in my symfony project that if I have an entity that has a <strong>non-nullable field</strong>, and that in the formType I make sure that the field <strong>is required</strong>.</p>
  
  <p>So in the rendering of the page, if I do "inspect the element" and I manually <strong>remove the "required" attribute from the field</strong>, well <strong>I can validate</strong>, and in this case I will have a doctrinal error instead of staying on the form page with a simple validation error</p>
  
  <blockquote>
    <p>SQLSTATE[23000]: Integrity constraint violation: 1048 Le champ 'titre'
    ne peut être vide (null)</p>
  </blockquote>
  
  <p>However, I use <code>{{form_row(form.field)}}</code> in my Twig file, so I should have the <strong>form_error</strong> too.</p>
  
  <p>Does this mean that for all my entities, I have to add <code>@Assert\NotNull</code> each time to avoid this problem? It seems far-fetched even if it is not managed automatically</p>