protected function withQueryBuilder($do) { $qb = $this->getBaseQueryBuilder(); $do($qb, $qb->expr()); return $qb; }