src/TrivialSense/FrameworkCommon/Repository/TranslatableRepository.php
public function getSingleScalarResult(QueryBuilder $qb, $locale = null)
    {
        return $this->getTranslatedQuery($qb, $locale)->getSingleScalarResult();
    }
public function getSingleScalarResult(QueryBuilder $qb, $locale = null)
    {
        return $this->getTranslatedQuery($qb, $locale)->getSingleScalarResult();
    }
public function getSingleScalarResult ( QueryBuilder $ qb , $ locale = null ) { return $ this -> getTranslatedQuery ( $ qb , $ locale ) -> getSingleScalarResult ( ) ; }
Returns translated single scalar result for given locale

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

@return QueryBuilder
Returns translated single scalar result for given locale