protected function getUsers()
    {
        $qb = $this->registry->getManager()->createQueryBuilder();

        $qb
            ->select('u')
            ->from($this->userClass, 'u')
            ->where($qb->expr()->like('u.roles', ':roles'))
            ->setParameter('roles', '%"ROLE_SUPER_ADMIN"%');

        return $qb->getQuery()->iterate();
    }
protected function getUsers()
    {
        $qb = $this->registry->getManager()->createQueryBuilder();

        $qb
            ->select('u')
            ->from($this->userClass, 'u')
            ->where($qb->expr()->like('u.roles', ':roles'))
            ->setParameter('roles', '%"ROLE_SUPER_ADMIN"%');

        return $qb->getQuery()->iterate();
    }
protected function getUsers ( ) { $ qb = $ this -> registry -> getManager ( ) -> createQueryBuilder ( ) ; $ qb -> select ( 'u' ) -> from ( $ this -> userClass , 'u' ) -> where ( $ qb -> expr ( ) -> like ( 'u.roles' , ':roles' ) ) -> setParameter ( 'roles' , '%"ROLE_SUPER_ADMIN"%' ) ; return $ qb -> getQuery ( ) -> iterate ( ) ; }
Returns corresponding users.

@return \Doctrine\ORM\Internal\Hydration\IterableResult
Returns corresponding users .