Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Symfony 2.3

PHP
$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
Posted
Updated 18-Jun-15 15:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900