src/Flowcode/ShopBundle/Controller/AdminProductOrderController.php
/**
     * Creates a form to edit a ProductOrder entity.
     *
     * @param ProductOrder $entity The entity
     *
     * @return \Symfony\Component\Form\Form The form
     */
Creates a form to edit a ProductOrder entity.
@param ProductOrder $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to edit a ProductOrder entity . @param ProductOrder $entity The entity @return \ Symfony \ Component \ Form \ Form The form
private function createEditForm(ProductOrder $entity)
    {
        $form = $this->createForm($this->get("amulen.shop.form.productorder"), $entity, array(
            'action' => $this->generateUrl('admin_order_update', array('id' => $entity->getId())),
            'method' => 'PUT',
        ));
        $form->add('submit', 'submit', array('label' => 'Update'));
        return $form;
    }
private function createEditForm ( ProductOrder $ entity ) { $ form = $ this -> createForm ( $ this -> get ( " amulen.shop.form.productorder " ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'admin_order_update' , array ( 'id' => $ entity -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Update' ) ) ; return $ form ; }
Creates a form to edit a ProductOrder entity.
Creates a form to edit a ProductOrder entity .