public function selectFromRepositoryEntity($alias = null, $indexBy = null)
    {
        if ($alias) {
            $this->entityAlias = $alias;
        }

        if (!$alias) {
            $alias = $this->getEntityAlias();
        }

        $this->select($alias)->from($this->getEntityClassName(), $alias, $indexBy);

        return $this;
    }
public function selectFromRepositoryEntity($alias = null, $indexBy = null)
    {
        if ($alias) {
            $this->entityAlias = $alias;
        }

        if (!$alias) {
            $alias = $this->getEntityAlias();
        }

        $this->select($alias)->from($this->getEntityClassName(), $alias, $indexBy);

        return $this;
    }
public function selectFromRepositoryEntity ( $ alias = null , $ indexBy = null ) { if ( $ alias ) { $ this -> entityAlias = $ alias ; } if ( ! $ alias ) { $ alias = $ this -> getEntityAlias ( ) ; } $ this -> select ( $ alias ) -> from ( $ this -> getEntityClassName ( ) , $ alias , $ indexBy ) ; return $ this ; }
Configure query to work with repository entity.

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

@return $this This QueryBuilder instance.
@throws \ReflectionException
Configure query to work with repository entity .