Re: [symfony-users] Symfony2 Form as a Standalone component

2011-12-22 Thread Hristo Salabashev
Hi Hari, you can check how is it done in Silex: https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/FormServiceProvider.php The controller method createFormBuilder translates to public function createFormBuilder($data = null, array $options = array()) { return

[symfony-users] Re: form from self-referencing object won't build

2011-06-20 Thread Hristo Salabashev
Hi Bart, having `children` the same type as the parent starts an endless recursion ( children like create another children which will create another and so on ). Easiest way to address this (tho maybe not optimal) is to create another definition for the nested type. On Jun 17, 9:02 am, Bart