protected function createSelectQuery($alias = 'o', $indexBy = null) {
        return $this->entities
            ->createQueryBuilder()
            ->select($alias)
            ->from($this->entityName, $alias, $indexBy);
    }
protected function createSelectQuery($alias = 'o', $indexBy = null) {
        return $this->entities
            ->createQueryBuilder()
            ->select($alias)
            ->from($this->entityName, $alias, $indexBy);
    }
protected function createSelectQuery ( $ alias = 'o' , $ indexBy = null ) { return $ this -> entities -> createQueryBuilder ( ) -> select ( $ alias ) -> from ( $ this -> entityName , $ alias , $ indexBy ) ; }
Creates a new QueryBuilder instance that is pre-populated for this entity name.

@param string $alias
@param string $indexBy The index for the form.

@return QueryBuilder
Creates a new QueryBuilder instance that is pre - populated for this entity name .