Have you taken a look at this? http://docs.symfony-reloaded.org/guides/doctrine/orm/form.html It sounds like it's what you're looking for, by pulling the dropdown values directly from the database with doctrine instead of typing the choices in the controller manually as your example shows.
In case you keep your sources updated, look at this instead as there were some small changes in how to attach the value transformer. http://docs.symfony-reloaded.org/master/guides/doctrine/orm/form.html -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
