Skip to content

Commit

Permalink
[TASK] Remove alias in update querybuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
nhovratov committed Mar 8, 2024
1 parent 09e861e commit 45a24c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Updates/FillTranslationSourceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 45a24c1

Please sign in to comment.