code: public function indexAction()
      {
          $em = $this->getDoctrine()->getManager();
  
          $cfGroups = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->findAll();
          $defaultGroups = $this->getDefaultGroupsId();
          
          $makeDefaultFormViews = array();
          foreach ($cfGroups as $group) {
              if (!in_array($group->getId(), $defaultGroups)){
                  $makeDefaultFormViews[$group->getId()] = $this->createMakeDefaultForm($group)->createView();
              }
          }
  
          return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:index.html.twig', array(
              'entities' => $cfGroups,
              'default_groups' => $defaultGroups,
              'make_default_forms' => $makeDefaultFormViews
          ));
      }
docs: Lists all CustomFieldsGroup entities.