src/Slashworks/AppBundle/Controller/CustomerController.php
private function createEditForm(Customer $oCustomer)
        {

            $oForm = $this->createForm(new CustomerType(array("language" => $this->get('request')->getLocale())), $oCustomer, array(
                'action' => $this->generateUrl('backend_system_customer_update', array('id' => $oCustomer->getId())),
                'method' => 'PUT',
            ));

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

            return $oForm;
        }
private function createEditForm(Customer $oCustomer)
        {

            $oForm = $this->createForm(new CustomerType(array("language" => $this->get('request')->getLocale())), $oCustomer, array(
                'action' => $this->generateUrl('backend_system_customer_update', array('id' => $oCustomer->getId())),
                'method' => 'PUT',
            ));

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

            return $oForm;
        }
private function createEditForm ( Customer $ oCustomer ) { $ oForm = $ this -> createForm ( new CustomerType ( array ( "language" => $ this -> get ( 'request' ) -> getLocale ( ) ) ) , $ oCustomer , array ( 'action' => $ this -> generateUrl ( 'backend_system_customer_update' , array ( 'id' => $ oCustomer -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; $ oForm -> add ( 'submit' , 'submit' , array ( 'label' => 'Update' ) ) ; return $ oForm ; }
Create form for editing customer

@param \Slashworks\AppBundle\Model\Customer $oCustomer

@return \Symfony\Component\Form\Form
Create form for editing customer