I would like to build a form with label and inputs, but the class of them should be different. Code below creates the label for the input with same attr:
publi
This works for me in Symfony 2.3:
{{ form_row(form.hours, { 'label': 'Hours:' ,'label_attr': {'class': 'MYCLASSFOR_LABEL'} ,'attr': {'class': 'MYCLASSFOR_INPUTS'} } ) }}