Repository/ConfigSectionRepository.php
public function findAllWithConfigGroups()
    {
        $query = $this->createQueryBuilder('s')
            ->select('s', 'g')
            ->innerJoin('s.configGroups', 'g')
            ->orderBy('s.position', 'ASC')
            ->getQuery();
        $result = $query->getResult();

        return $result;
    }
public function findAllWithConfigGroups()
    {
        $query = $this->createQueryBuilder('s')
            ->select('s', 'g')
            ->innerJoin('s.configGroups', 'g')
            ->orderBy('s.position', 'ASC')
            ->getQuery();
        $result = $query->getResult();

        return $result;
    }
public function findAllWithConfigGroups ( ) { $ query = $ this -> createQueryBuilder ( 's' ) -> select ( 's' , 'g' ) -> innerJoin ( 's.configGroups' , 'g' ) -> orderBy ( 's.position' , 'ASC' ) -> getQuery ( ) ; $ result = $ query -> getResult ( ) ; return $ result ; }
Find all section with their groups

@return array
Find all section with their groups