I'm picking information from the database in to a dropdown and here it
-------------------
id | username
-------------------
10 | llj
12 | AFS
How can I obtain this:
<option value="10">llj</option>
<option value="12">AFS</option>
in symfony2
->add('supervisor','entity', array(
'class' => 'AdminBundle:supervisor',
'expanded' => false,
'multiple' => false,
'placeholder'=>'',
'empty_value' => null
))