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())
                )
            )
        );
    }