Skip to content

Commit

Permalink
Merge pull request #3 from KrohnMi/fix-transsite-persistedalias-mapper
Browse files Browse the repository at this point in the history
Use fetchAllAssociative instead of fetchAssociative
  • Loading branch information
tlueder authored Aug 22, 2022
2 parents bacec24 + 7588045 commit f3d394b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Routing/Aspect/TransSitePersistedAliasMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function findByRouteFieldValue(string $value): ?array {

$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
if (version_compare($typo3Version->getVersion(), '11.5.0') >= 0) {
$results = $queryBuilder->executeQuery()->fetchAssociative();
$results = $queryBuilder->executeQuery()->fetchAllAssociative();
} else {
$results = $queryBuilder->execute()->fetchAll();
}
Expand Down

0 comments on commit f3d394b

Please sign in to comment.