src/TrivialSense/FrameworkCommon/Repository/TranslatableRepository.php
protected function getTranslatedQuery(QueryBuilder $qb, $locale = null)
    {
        $query = $this->setTranslationHints($qb->getQuery(), $locale);

        return $query;
    }
protected function getTranslatedQuery(QueryBuilder $qb, $locale = null)
    {
        $query = $this->setTranslationHints($qb->getQuery(), $locale);

        return $query;
    }
protected function getTranslatedQuery ( QueryBuilder $ qb , $ locale = null ) { $ query = $ this -> setTranslationHints ( $ qb -> getQuery ( ) , $ locale ) ; return $ query ; }
Returns translated Doctrine query instance

@param QueryBuilder $qb     A Doctrine query builder instance
@param string       $locale A locale name

@return Query
Returns translated Doctrine query instance