From f4b88a08a5bda2e3c7eece7efc6ba4575a980949 Mon Sep 17 00:00:00 2001 From: tischsoic Date: Thu, 18 Apr 2024 16:21:36 +0200 Subject: [PATCH] after CR --- .../Content/Common/Gateway/CriterionHandler/IsContainer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php index d018371b84..80189c186e 100644 --- a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php +++ b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php @@ -11,6 +11,7 @@ use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Query\QueryBuilder; use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion; +use Ibexa\Core\Persistence\Legacy\Content\Type\Gateway as ContentTypeGateway; use Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriteriaConverter; use Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler; @@ -23,8 +24,6 @@ public function accept(Criterion $criterion): bool /** * @phpstan-param array{languages: string[]} $languageSettings - * - * @param array $languageSettings */ public function handle( CriteriaConverter $converter, @@ -41,7 +40,7 @@ public function handle( ->select( 'id' )->from( - 'ezcontentclass' + ContentTypeGateway::CONTENT_TYPE_TABLE )->where( $queryBuilder->expr()->eq( 'is_container',