public function searchUsers($searchString = null, $page, $limit)
    {
        return $this->buildUserSearchQuery($searchString)
            ->getQuery()
            ->setMaxResults($limit)
            ->setFirstResult($limit * ($page - 1))
            ->getResult();
    }
public function searchUsers($searchString = null, $page, $limit)
    {
        return $this->buildUserSearchQuery($searchString)
            ->getQuery()
            ->setMaxResults($limit)
            ->setFirstResult($limit * ($page - 1))
            ->getResult();
    }
public function searchUsers ( $ searchString = null , $ page , $ limit ) { return $ this -> buildUserSearchQuery ( $ searchString ) -> getQuery ( ) -> setMaxResults ( $ limit ) -> setFirstResult ( $ limit * ( $ page - 1 ) ) -> getResult ( ) ; }
Gets a paginated list of users

@param null $searchString
@param int $page
@param int $limit

@return BaseUser[]
Gets a paginated list of users