protected function createSelectQuery($alias = 'o', $indexBy = null) {
        return $this->entities
            ->createQueryBuilder()
            ->select($alias)
            ->from($this->entityName, $alias, $indexBy);
    }