From 45a24c15d2ea91576eca0c4bf0bc1e2aae9eb758 Mon Sep 17 00:00:00 2001 From: Nikita Hovratov Date: Fri, 8 Mar 2024 19:13:03 +0100 Subject: [PATCH] [TASK] Remove alias in update querybuilder --- Classes/Updates/FillTranslationSourceField.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Updates/FillTranslationSourceField.php b/Classes/Updates/FillTranslationSourceField.php index 645987df..ef51a2bc 100644 --- a/Classes/Updates/FillTranslationSourceField.php +++ b/Classes/Updates/FillTranslationSourceField.php @@ -61,12 +61,12 @@ public function executeUpdate(): bool ->getConnectionForTable($maskTable->table); $queryBuilder = $connection->createQueryBuilder(); $queryBuilder->getRestrictions()->removeAll(); - $queryBuilder->update($maskTable->table, 't') - ->set('t.l10n_source', 't.l10n_parent', false) + $queryBuilder->update($maskTable->table) + ->set('l10n_source', 'l10n_parent', false) ->where( $queryBuilder->expr()->and( - $queryBuilder->expr()->gt('t.l10n_parent', $queryBuilder->createNamedParameter(0)), - $queryBuilder->expr()->eq('t.l10n_source', $queryBuilder->createNamedParameter(0)) + $queryBuilder->expr()->gt('l10n_parent', $queryBuilder->createNamedParameter(0)), + $queryBuilder->expr()->eq('l10n_source', $queryBuilder->createNamedParameter(0)) ) ); $queryBuilder->executeStatement();