Re: [symfony-users] FormComponent Question

2011-05-03 Thread Bernhard Schussek
Hi Geoff, Like with createBuilder(), you can pass the $product as second argument of create(): $form = $this->get('form.factory')->create(new ProductType(), $product); Could you fix the documentation in this regard? Thanks! Bernhard -- If you want to report a vulnerability issue on symfony,

[symfony-users] FormComponent Question

2011-05-02 Thread Geoff G
In the book, there is the following example: [code] namespace Acme\StoreBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Acme\StoreBundle\Entity\Product; class DefaultController extends Controller { public function indexAction() { // create a produc