src/Flowcode/ShopBundle/Controller/AdminStockChangeLogController.php
/**
     * Displays a form to edit an existing StockChangeLog entity.
     *
     * @Route("/{id}/edit", name="admin_shop_changelog_edit", requirements={"id"="\d+"})
     * @Method("GET")
     * @Template()
     */
Displays a form to edit an existing StockChangeLog entity.
Displays a form to edit an existing StockChangeLog entity .
public function editAction(StockChangeLog $stockchangelog)
    {
        $editForm = $this->createForm(new StockChangeLogType(), $stockchangelog, array(
            'action' => $this->generateUrl('admin_shop_changelog_update', array('id' => $stockchangelog->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($stockchangelog->getId(), 'admin_shop_changelog_delete');
        return array(
            'stockchangelog' => $stockchangelog,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function editAction ( StockChangeLog $ stockchangelog ) { $ editForm = $ this -> createForm ( new StockChangeLogType ( ) , $ stockchangelog , array ( 'action' => $ this -> generateUrl ( 'admin_shop_changelog_update' , array ( 'id' => $ stockchangelog -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ stockchangelog -> getId ( ) , 'admin_shop_changelog_delete' ) ; return array ( 'stockchangelog' => $ stockchangelog , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Displays a form to edit an existing StockChangeLog entity.
Displays a form to edit an existing StockChangeLog entity .