public function hasUsersQuery() { $qb = $this->createQueryBuilder(); $qb->select('COUNT(id) as count'); return $qb; }