In Symfony2 kann man das Klassenattribut eines Formulareingabefelds mit der "attr"-Option in der Formfeldkonfiguration festlegen.