protected function getCollectionQueryBuilder($alias = null, $indexBy = null)
    {
        $qb = $this->traitGetCollectionQueryBuilder($alias, $indexBy);

        $alias = $alias ?: $this->getAlias();

        return $qb
            ->addSelect('translation')
            ->leftJoin($alias . '.translations', 'translation');
    }
protected function getCollectionQueryBuilder($alias = null, $indexBy = null)
    {
        $qb = $this->traitGetCollectionQueryBuilder($alias, $indexBy);

        $alias = $alias ?: $this->getAlias();

        return $qb
            ->addSelect('translation')
            ->leftJoin($alias . '.translations', 'translation');
    }
protected function getCollectionQueryBuilder ( $ alias = null , $ indexBy = null ) { $ qb = $ this -> traitGetCollectionQueryBuilder ( $ alias , $ indexBy ) ; $ alias = $ alias ? : $ this -> getAlias ( ) ; return $ qb -> addSelect ( 'translation' ) -> leftJoin ( $ alias . '.translations' , 'translation' ) ; }
Returns the collection query builder.

@param string $alias
@param string $indexBy

@return \Doctrine\ORM\QueryBuilder
Returns the collection query builder .