Controller/UserController.php
private function createAddLinkGroupCenterForm(User $user)
    {
        return $this->createFormBuilder()
                ->setAction($this->generateUrl('admin_user_add_group_center', 
                        array('uid' => $user->getId())))
                ->setMethod('POST')
                ->add(self::FORM_GROUP_CENTER_COMPOSED, new ComposedGroupCenterType())
                ->add('submit', 'submit', array('label' => 'Add a new groupCenter'))
                ->getForm()
                ;
    }
private function createAddLinkGroupCenterForm(User $user)
    {
        return $this->createFormBuilder()
                ->setAction($this->generateUrl('admin_user_add_group_center', 
                        array('uid' => $user->getId())))
                ->setMethod('POST')
                ->add(self::FORM_GROUP_CENTER_COMPOSED, new ComposedGroupCenterType())
                ->add('submit', 'submit', array('label' => 'Add a new groupCenter'))
                ->getForm()
                ;
    }
private function createAddLinkGroupCenterForm ( User $ user ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'admin_user_add_group_center' , array ( 'uid' => $ user -> getId ( ) ) ) ) -> setMethod ( 'POST' ) -> add ( self :: FORM_GROUP_CENTER_COMPOSED , new ComposedGroupCenterType ( ) ) -> add ( 'submit' , 'submit' , array ( 'label' => 'Add a new groupCenter' ) ) -> getForm ( ) ; }
create a form to add a link to a groupcenter

@param User $user
@return \Symfony\Component\Form\Form
create a form to add a link to a groupcenter