src/Flowcode/ShopBundle/Controller/StockLevelController.php
/**
     * Displays a form to create a new StockLevel entity.
     *
     * @Route("/new", name="stock_stocklevel_new")
     * @Method("GET")
     * @Template()
     */
Displays a form to create a new StockLevel entity.
Displays a form to create a new StockLevel entity .
public function newAction()
    {
        $stocklevel = new StockLevel();
        $form = $this->createForm(new StockLevelType(), $stocklevel);
        return array(
            'stocklevel' => $stocklevel,
            'form'   => $form->createView(),
        );
    }
public function newAction ( ) { $ stocklevel = new StockLevel ( ) ; $ form = $ this -> createForm ( new StockLevelType ( ) , $ stocklevel ) ; return array ( 'stocklevel' => $ stocklevel , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new StockLevel entity.
Displays a form to create a new StockLevel entity .