Controller/ConfigurationController.php
protected function createConfigGroupForm(ConfigGroup $group = null)
    {
        $formBuilder = $this->createFormBuilder();
        if ($group) {
            $values = $this->container->get('admin.configuration.configvalue_manager')->getRepository()->findByConfigGroupId($group->getId());
            foreach ($values as $configValue) {
                $sub = $this->container->get('form.factory')->createNamedBuilder(
                    str_replace(':', '___', $configValue->getPath()),
                    'admin_configuration_configvalue_'.$configValue->getConfigType()->getFormType(),
                    $configValue
                );
                $formBuilder->add($sub);
            }
        }

        return $formBuilder->getForm();
    }
protected function createConfigGroupForm(ConfigGroup $group = null)
    {
        $formBuilder = $this->createFormBuilder();
        if ($group) {
            $values = $this->container->get('admin.configuration.configvalue_manager')->getRepository()->findByConfigGroupId($group->getId());
            foreach ($values as $configValue) {
                $sub = $this->container->get('form.factory')->createNamedBuilder(
                    str_replace(':', '___', $configValue->getPath()),
                    'admin_configuration_configvalue_'.$configValue->getConfigType()->getFormType(),
                    $configValue
                );
                $formBuilder->add($sub);
            }
        }

        return $formBuilder->getForm();
    }
protected function createConfigGroupForm ( ConfigGroup $ group = null ) { $ formBuilder = $ this -> createFormBuilder ( ) ; if ( $ group ) { $ values = $ this -> container -> get ( 'admin.configuration.configvalue_manager' ) -> getRepository ( ) -> findByConfigGroupId ( $ group -> getId ( ) ) ; foreach ( $ values as $ configValue ) { $ sub = $ this -> container -> get ( 'form.factory' ) -> createNamedBuilder ( str_replace ( ':' , '___' , $ configValue -> getPath ( ) ) , 'admin_configuration_configvalue_' . $ configValue -> getConfigType ( ) -> getFormType ( ) , $ configValue ) ; $ formBuilder -> add ( $ sub ) ; } } return $ formBuilder -> getForm ( ) ; }
Create the form for all values in group

@param ConfigGroup $group [description]

@return [type]
Create the form for all values in group