src/Flowcode/ShopBundle/Controller/StockLevelController.php
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(),
        );
    }
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.

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