public function createQueryBuilder($alias = null, $indexBy = null)
    {
        return $this->createNewQueryBuilderInstance()->selectFromRepositoryEntity($alias, $indexBy);
    }
public function createQueryBuilder($alias = null, $indexBy = null)
    {
        return $this->createNewQueryBuilderInstance()->selectFromRepositoryEntity($alias, $indexBy);
    }
public function createQueryBuilder ( $ alias = null , $ indexBy = null ) { return $ this -> createNewQueryBuilderInstance ( ) -> selectFromRepositoryEntity ( $ alias , $ indexBy ) ; }
Gets an ExpressionBuilder used for object-oriented construction of query expressions.

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

@return EntityQueryBuilder
@throws \ReflectionException
Gets an ExpressionBuilder used for object - oriented construction of query expressions .