src/Flowcode/ShopBundle/Controller/StockLevelController.php
public function editAction(StockLevel $stocklevel)
    {
        $editForm = $this->createForm(new StockLevelType(), $stocklevel, array(
            'action' => $this->generateUrl('stock_stocklevel_update', array('id' => $stocklevel->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($stocklevel->getId(), 'stock_stocklevel_delete');

        return array(
            'stocklevel' => $stocklevel,
            'edit_form'   => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function editAction(StockLevel $stocklevel)
    {
        $editForm = $this->createForm(new StockLevelType(), $stocklevel, array(
            'action' => $this->generateUrl('stock_stocklevel_update', array('id' => $stocklevel->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($stocklevel->getId(), 'stock_stocklevel_delete');

        return array(
            'stocklevel' => $stocklevel,
            'edit_form'   => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function editAction ( StockLevel $ stocklevel ) { $ editForm = $ this -> createForm ( new StockLevelType ( ) , $ stocklevel , array ( 'action' => $ this -> generateUrl ( 'stock_stocklevel_update' , array ( 'id' => $ stocklevel -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ stocklevel -> getId ( ) , 'stock_stocklevel_delete' ) ; return array ( 'stocklevel' => $ stocklevel , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Displays a form to edit an existing StockLevel entity.

@Route("/{id}/edit", name="stock_stocklevel_edit", requirements={"id"="\d+"})
@Method("GET")
@Template()
Displays a form to edit an existing StockLevel entity .