Controller/ScopeController.php
private function createEditForm(Scope $scope)
    {
        $form = $this->createForm(new ScopeType(), $scope, array(
            'action' => $this->generateUrl('admin_scope_update', array('id' => $scope->getId())),
            'method' => 'PUT',
        ));

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

        return $form;
    }
private function createEditForm(Scope $scope)
    {
        $form = $this->createForm(new ScopeType(), $scope, array(
            'action' => $this->generateUrl('admin_scope_update', array('id' => $scope->getId())),
            'method' => 'PUT',
        ));

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

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

@param Scope $scope The entity

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