Controller/CenterController.php
private function createEditForm(Center $center)
    {
        $form = $this->createForm(new CenterType(), $center, array(
            'action' => $this->generateUrl('admin_center_update', array('id' => $center->getId())),
            'method' => 'PUT',
        ));

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

        return $form;
    }
private function createEditForm(Center $center)
    {
        $form = $this->createForm(new CenterType(), $center, array(
            'action' => $this->generateUrl('admin_center_update', array('id' => $center->getId())),
            'method' => 'PUT',
        ));

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

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

@param Center $center The entity

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