I need to add a few attributes (f.e. disabled and selected) to the first option in select tag.
this line {{ form_widget(form.idkategoria) }} in twig render:
<select id="foo" name="foo">
<option value="">Kategoria</option>
<option value="1">foo</option>
<option value="2">foo</option>
or how to add an 'attr' to placeholder to keep default 'Kategoria' text.
$builder->add('idkategoria', null, array
('placeholder' => 'Kategoria',))