44
55namespace Netgen \Bundle \IbexaScheduledVisibilityBundle \Command ;
66
7+ use Doctrine \DBAL \ArrayParameterType ;
78use Doctrine \DBAL \Connection ;
89use Doctrine \DBAL \Query \QueryBuilder ;
910use Ibexa \Contracts \Core \Repository \ContentService ;
@@ -205,7 +206,7 @@ private function getQueryBuilder(?int $since, array $contentTypeIds): QueryBuild
205206
206207 $ queryBuilder
207208 ->select ('id ' , 'initial_language_id ' )
208- ->from ('ezcontentobject ' )
209+ ->from ('ibexa_content ' )
209210 ->where ('published != :unpublished ' )
210211 ->andWhere ('status != :trashed ' )
211212 ->orderBy ('id ' , 'ASC ' )
@@ -242,8 +243,8 @@ private function applyContentTypes(QueryBuilder $query, array $contentTypeIds):
242243 }
243244
244245 $ query
245- ->andWhere ($ query ->expr ()->in ('contentclass_id ' , ':content_type_ids ' ))
246- ->setParameter ('content_type_ids ' , $ contentTypeIds , Connection:: PARAM_INT_ARRAY )
246+ ->andWhere ($ query ->expr ()->in ('content_type_id ' , ':content_type_ids ' ))
247+ ->setParameter ('content_type_ids ' , $ contentTypeIds , ArrayParameterType:: INTEGER )
247248 ;
248249 }
249250
@@ -255,7 +256,7 @@ private function getPager(?int $since): Pagerfanta
255256
256257 $ countQueryBuilderModifier = function (QueryBuilder $ queryBuilder ) use ($ since , $ contentTypeIds ): void {
257258 $ queryBuilder ->select ('COUNT(id) AS total_results ' )
258- ->from ('ezcontentobject ' )
259+ ->from ('ibexa_content ' )
259260 ->where ('published != :unpublished ' )
260261 ->setParameter ('unpublished ' , 0 )
261262 ->setParameter ('trashed ' , ContentInfo::STATUS_TRASHED )
0 commit comments