EcommerceBundle/Controller/ContractController.php
private function createEditForm(Contract $entity)
    {
        $form = $this->createForm(new ContractType(), $entity, array(
            'action' => $this->generateUrl('ecommerce_contract_update', array('id' => $entity->getId())),
            'method' => 'PUT',
        ));

//        $form->add('submit', 'submit', array('label' => 'Update'));

        return $form;
    }
private function createEditForm(Contract $entity)
    {
        $form = $this->createForm(new ContractType(), $entity, array(
            'action' => $this->generateUrl('ecommerce_contract_update', array('id' => $entity->getId())),
            'method' => 'PUT',
        ));

//        $form->add('submit', 'submit', array('label' => 'Update'));

        return $form;
    }
private function createEditForm ( Contract $ entity ) { $ form = $ this -> createForm ( new ContractType ( ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'ecommerce_contract_update' , array ( 'id' => $ entity -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; //        $form->add('submit', 'submit', array('label' => 'Update')); return $ form ; }
Creates a form to edit a Contract entity.

@param Contract $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to edit a Contract entity .