src/Sulu/Bundle/SecurityBundle/Entity/GroupRepository.php
public function findAllGroups()
    {
        try {
            $qb = $this->createQueryBuilder('grp');
            $query = $qb->getQuery();

            $result = $query->getResult();

            return $result;
        } catch (NoResultException $ex) {
            return;
        }
    }
public function findAllGroups()
    {
        try {
            $qb = $this->createQueryBuilder('grp');
            $query = $qb->getQuery();

            $result = $query->getResult();

            return $result;
        } catch (NoResultException $ex) {
            return;
        }
    }
public function findAllGroups ( ) { try { $ qb = $ this -> createQueryBuilder ( 'grp' ) ; $ query = $ qb -> getQuery ( ) ; $ result = $ query -> getResult ( ) ; return $ result ; } catch ( NoResultException $ ex ) { return ; } }
Searches for all roles.

@return array
Searches for all roles .