Skip to content

Commit

Permalink
Deprecation: #97354 - ExpressionBuilder methods andX() and orX()
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Lehmann committed Jul 6, 2023
1 parent 499f810 commit d74620f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Classes/Domain/Repository/PageTreeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class PageTreeRepository extends \TYPO3\CMS\Backend\Tree\Repository\PageTreeRepo

protected array $filterConstraints = [];

// @todo: Use predefined list from core. Where is it?
protected const ALLOWED_TABLE_FIELDS = [
'tt_content:CType',
'tt_content:list_type',
Expand Down Expand Up @@ -89,7 +88,7 @@ protected function getFilteredPageUids(): array
} else {
if (empty($constraint['value']) && $this->isNullableColumn($queryBuilder, $constraint['field'])) {
$query->andWhere(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->or(
$queryBuilder->expr()->isNull($constraint['field']),
$queryBuilder->expr()->eq($constraint['field'], $queryBuilder->createNamedParameter(''))
)
Expand All @@ -102,7 +101,7 @@ protected function getFilteredPageUids(): array
}
}

$rows = $query->execute()->fetchAllAssociative();
$rows = $query->executeQuery()->fetchAllAssociative();
foreach ($rows as $row) {
if ($this->filterTable === 'pages' && $row['l10n_parent'] > 0) {
$pageUids[] = $row['l10n_parent'];
Expand Down

0 comments on commit d74620f

Please sign in to comment.