src/Sulu/Component/Content/Repository/ContentRepository.php
private function resolveQueryBuilder(
        QueryBuilder $queryBuilder,
        $locale,
        $locales,
        MappingInterface $mapping,
        UserInterface $user = null
    ) {
        return array_values(
            array_filter(
                array_map(
                    function(Row $row) use ($mapping, $locale, $locales, $user) {
                        return $this->resolveContent($row, $locale, $locales, $mapping, $user);
                    },
                    iterator_to_array($queryBuilder->execute())
                )
            )
        );
    }
private function resolveQueryBuilder(
        QueryBuilder $queryBuilder,
        $locale,
        $locales,
        MappingInterface $mapping,
        UserInterface $user = null
    ) {
        return array_values(
            array_filter(
                array_map(
                    function(Row $row) use ($mapping, $locale, $locales, $user) {
                        return $this->resolveContent($row, $locale, $locales, $mapping, $user);
                    },
                    iterator_to_array($queryBuilder->execute())
                )
            )
        );
    }
private function resolveQueryBuilder ( QueryBuilder $ queryBuilder , $ locale , $ locales , MappingInterface $ mapping , UserInterface $ user = null ) { return array_values ( array_filter ( array_map ( function ( Row $ row ) use ( $ mapping , $ locale , $ locales , $ user ) { return $ this -> resolveContent ( $ row , $ locale , $ locales , $ mapping , $ user ) ; } , iterator_to_array ( $ queryBuilder -> execute ( ) ) ) ) ) ; }
Resolves query results to content.

@param QueryBuilder $queryBuilder
@param string $locale
@param MappingInterface $mapping
@param UserInterface $user

@return Content[]
Resolves query results to content .