As you can see in your validation file, the NotBlank
constraint is defined on your address2
property:
properties:
address2:
- NotBlank:
message: 'Testing required'
All errors on that form field will therefore be available on that field:
{{ form_errors(form.address2) }}
Note: You don't have to pass the errors like this to your template:
//Get all errors that are attributed to the entity itself
{{ form_errors(form) }}
//Get all errors for the individual field `address2 `
{{ form_errors(form.address2) }}