Skip to content

Commit f4b88a0

Browse files
committed
after CR
1 parent ebe0e61 commit f4b88a0

File tree

1 file changed

+2
-3
lines changed
  • src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler

1 file changed

+2
-3
lines changed

src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Doctrine\DBAL\ParameterType;
1212
use Doctrine\DBAL\Query\QueryBuilder;
1313
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
14+
use Ibexa\Core\Persistence\Legacy\Content\Type\Gateway as ContentTypeGateway;
1415
use Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriteriaConverter;
1516
use Ibexa\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler;
1617

@@ -23,8 +24,6 @@ public function accept(Criterion $criterion): bool
2324

2425
/**
2526
* @phpstan-param array{languages: string[]} $languageSettings
26-
*
27-
* @param array $languageSettings
2827
*/
2928
public function handle(
3029
CriteriaConverter $converter,
@@ -41,7 +40,7 @@ public function handle(
4140
->select(
4241
'id'
4342
)->from(
44-
'ezcontentclass'
43+
ContentTypeGateway::CONTENT_TYPE_TABLE
4544
)->where(
4645
$queryBuilder->expr()->eq(
4746
'is_container',

0 commit comments

Comments
 (0)