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,
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