- Code: Select all
$builder->add('users', 'entity', array(
'class' => 'AcmeHelloBundle:User',
'property' => 'name',
Use this method to display a select users in a update form. The problem is that when the data are sent , send the name and want to send the id while showing the names in the select.
not use relationships in the database or the entities