src/Flowcode/ShopBundle/Controller/AdminProductController.php
public function newAction()
    {
        $entity = new Product();

        $entity = $this->addProductItemFieldData($entity);


        $form = $this->createCreateForm($entity);

        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }
public function newAction()
    {
        $entity = new Product();

        $entity = $this->addProductItemFieldData($entity);


        $form = $this->createCreateForm($entity);

        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }
public function newAction ( ) { $ entity = new Product ( ) ; $ entity = $ this -> addProductItemFieldData ( $ entity ) ; $ form = $ this -> createCreateForm ( $ entity ) ; return array ( 'entity' => $ entity , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new Product entity.

@Route("/new", name="admin_product_new")
@Method("GET")
@Template()
Displays a form to create a new Product entity .