Skip to content

Commit 5ec224f

Browse files
authored
Merge pull request #236 from web-vision/issue-234
[BUGFIX] Avoid doctrine/dbal `fetchAssociative()`
2 parents 643ced1 + 5528167 commit 5ec224f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Classes/Override/DeeplRecordListController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ private function buildGlossaryTranslationOptionDropdown(string $requestUri): str
101101
$queryBuilder->createNamedParameter($this->id, Connection::PARAM_INT)
102102
)
103103
)
104-
->executeQuery();
105-
while ($pageTranslation = $statement->fetchAssociative()) {
104+
->execute();
105+
while ($pageTranslation = $statement->fetch()) {
106106
unset($availableTranslations[(int)$pageTranslation[$languageField]]);
107107
}
108108
// If any languages are left, make selector:

Classes/Utility/DeeplBackendUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static function buildTranslateDropdown(
257257
)
258258
)
259259
->execute();
260-
while ($pageTranslation = $statement->fetchAssociative()) {
260+
while ($pageTranslation = $statement->fetch()) {
261261
unset($availableTranslations[(int)$pageTranslation[$languageField]]);
262262
}
263263
// If any languages are left, make selector:

Tests/Functional/Hooks/TranslateHookTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function translateContentElementsAndUpdatePagesProperties(): void
137137
[
138138
'uid' => 2,
139139
]
140-
)->fetchAssociative();
140+
)->fetch();
141141

142142
static::assertArrayHasKey('tx_wvdeepltranslate_content_not_checked', $pageRow);
143143
static::assertSame(1, (int)$pageRow['tx_wvdeepltranslate_content_not_checked']);

0 commit comments

Comments
 (0)