I use almost standard CRUD form rendering in Twig:
{{ form_start(form, {'attr' : {'class' : 'new_edit_form'}}) }}
{{ form_widget(form) }}
<input type="submit" value="{{ 'default.new.create'|trans }}"/>
{{ form_end(form) }}
In this case all inputs have labels with upper case property names:
Title
Description
Date
I have translations enabled in my project and Twig tries to translate these words, but in my dictionaries all properties have ids like field.property_name. So I want to go through all form inputs and rewrite all labels making them lower case and adding 'field.' prefix. How can I do this in cycle?
Symfony 3.4