/** * Lists all Section entities. * * @return Response */ public function indexAction() { $entities = $this->sectionRepository->findBy(array('parent' => $this->getSection()->getId()), array('ordering' => 'ASC')); return $this->render('UnifikSystemBundle:Backend/Section/Section:list.html.twig', array('entities' => $entities)); }