You have two possible ways of doing it:
- do not redirect user upon error and display
{{ form_errors(form) }}
within template file - access error array as
$form->getErrors()
You have two possible ways of doing it:
{{ form_errors(form) }}
within template file$form->getErrors()