diff --git a/src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php b/src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php index 8eb6991e..1db71b0a 100644 --- a/src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php +++ b/src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php @@ -175,7 +175,11 @@ private function doMapFields(Content $content, ContentType $contentType, $langua */ private function doMapRelatedFields(Content $sourceContent, $languageCode, $maxDepth, $depth) { - $relations = $this->contentHandler->loadRelations($sourceContent->versionInfo->contentInfo->id); + $sourceContentId = $sourceContent->versionInfo->contentInfo->id; + $relations = $this->contentHandler->loadRelationList( + $sourceContentId, + $this->contentHandler->countRelations($sourceContentId) + ); $relatedContents = $this->contentHandler->loadContentList( array_map(static function (Content\Relation $relation) {