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;
    }