private function createEditForm(Role $entity)
    {
        $form = $this->createForm('sam_role', $entity, array(
            'action' => $this->generateUrl('sam_role_update', array('id' => $entity->getId())),
            'method' => 'PUT',
        ));

        return $form;
    }
private function createEditForm(Role $entity)
    {
        $form = $this->createForm('sam_role', $entity, array(
            'action' => $this->generateUrl('sam_role_update', array('id' => $entity->getId())),
            'method' => 'PUT',
        ));

        return $form;
    }
private function createEditForm ( Role $ entity ) { $ form = $ this -> createForm ( 'sam_role' , $ entity , array ( 'action' => $ this -> generateUrl ( 'sam_role_update' , array ( 'id' => $ entity -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; return $ form ; }
Creates a form to edit a Role entity.

@param Role $entity The entity

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