src/Sulu/Component/Content/Repository/ContentRepository.php
private function appendSingleMapping(QueryBuilder $queryBuilder, $propertyName, $locales)
    {
        foreach ($locales as $locale) {
            $alias = sprintf('%s%s', $locale, str_replace('-', '_', ucfirst($propertyName)));

            $queryBuilder->addSelect(
                'node',
                $this->propertyEncoder->localizedContentName($propertyName, $locale),
                $alias
            );
        }
    }
private function appendSingleMapping(QueryBuilder $queryBuilder, $propertyName, $locales)
    {
        foreach ($locales as $locale) {
            $alias = sprintf('%s%s', $locale, str_replace('-', '_', ucfirst($propertyName)));

            $queryBuilder->addSelect(
                'node',
                $this->propertyEncoder->localizedContentName($propertyName, $locale),
                $alias
            );
        }
    }
private function appendSingleMapping ( QueryBuilder $ queryBuilder , $ propertyName , $ locales ) { foreach ( $ locales as $ locale ) { $ alias = sprintf ( '%s%s' , $ locale , str_replace ( '-' , '_' , ucfirst ( $ propertyName ) ) ) ; $ queryBuilder -> addSelect ( 'node' , $ this -> propertyEncoder -> localizedContentName ( $ propertyName , $ locale ) , $ alias ) ; } }
Append mapping selects for a single property to given query-builder.

@param QueryBuilder $queryBuilder
@param string $propertyName
@param string[] $locales
Append mapping selects for a single property to given query - builder .