[symfony-users] How to get array of field names and default values by inspecting $form

2010-04-27 Thread notbrain
I've been looking through the docs and API for methods that would allow me to do this, but I find myself running around in circles and getting a little frustrated by lack of examples/clarity. What I need to get is an array of field_name/default_value pairs as set up in the form class. Let's say my

Re: [symfony-users] How to get array of field names and default values by inspecting $form

2010-04-27 Thread Thomas Rabaix
foreach($schema-getDefaults() as *$field_name* = $default) { print $default . \n; } ? On Mon, Apr 26, 2010 at 9:22 PM, notbrain notbr...@gmail.com wrote: I've been looking through the docs and API for methods that would allow me to do this, but I find myself running around in circles and