src/Slashworks/AppBundle/Controller/LicenseController.php
private function createEditForm(License $oLicense)
        {

            $oForm = $this->createForm(new LicenseType(), $oLicense, array(
                'action' => $this->generateUrl('license_update', array('id' => $oLicense->getId())),
                'method' => 'PUT',
            ));

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

            return $oForm;
        }
private function createEditForm(License $oLicense)
        {

            $oForm = $this->createForm(new LicenseType(), $oLicense, array(
                'action' => $this->generateUrl('license_update', array('id' => $oLicense->getId())),
                'method' => 'PUT',
            ));

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

            return $oForm;
        }
private function createEditForm ( License $ oLicense ) { $ oForm = $ this -> createForm ( new LicenseType ( ) , $ oLicense , array ( 'action' => $ this -> generateUrl ( 'license_update' , array ( 'id' => $ oLicense -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; $ oForm -> add ( 'submit' , 'submit' , array ( 'label' => 'Update' ) ) ; return $ oForm ; }
Create edit form for lucense

@param \Slashworks\AppBundle\Model\License $oLicense

@return \Symfony\Component\Form\Form
Create edit form for lucense