@@ -254,7 +254,7 @@ private function processScanBatch(
254254 $ pathHash = md5 ($ relativePath );
255255 if (isset ($ legacyByPathHash [$ pathHash ])) {
256256 $ legacyRow = $ legacyByPathHash [$ pathHash ];
257- $ qb = $ this ->connection ->getTypedQueryBuilder ();
257+ $ qb = $ this ->connection ->getQueryBuilder ();
258258 $ qb ->delete ('filecache ' )
259259 ->where ($ qb ->expr ()->eq ('fileid ' , $ qb ->createNamedParameter ($ legacyRow ['fileid ' ])))
260260 ->andWhere ($ qb ->expr ()->eq ('storage ' , $ qb ->createNamedParameter ($ legacyRow ['storage ' ])))
@@ -310,8 +310,8 @@ private function fetchFilecacheByFileIds(array $fileIds): array {
310310 }
311311
312312 $ result = [];
313- $ qb = $ this ->connection ->getTypedQueryBuilder ();
314- $ qb ->selectColumns ('fileid ' , 'storage ' , 'etag ' , 'mimetype ' )
313+ $ qb = $ this ->connection ->getQueryBuilder ();
314+ $ qb ->select ('fileid ' , 'storage ' , 'etag ' , 'mimetype ' )
315315 ->from ('filecache ' );
316316 foreach (array_chunk ($ fileIds , 1000 ) as $ chunk ) {
317317 $ qb ->andWhere (
@@ -338,8 +338,8 @@ private function fetchFilecacheByPathHashes(array $pathHashes): array {
338338 }
339339
340340 $ result = [];
341- $ qb = $ this ->connection ->getTypedQueryBuilder ();
342- $ qb ->selectColumns ('fileid ' , 'storage ' , 'etag ' , 'mimetype ' , 'parent ' , 'path_hash ' )
341+ $ qb = $ this ->connection ->getQueryBuilder ();
342+ $ qb ->select ('fileid ' , 'storage ' , 'etag ' , 'mimetype ' , 'parent ' , 'path_hash ' )
343343 ->from ('filecache ' );
344344 foreach (array_chunk ($ pathHashes , 1000 ) as $ chunk ) {
345345 $ qb ->andWhere (
@@ -360,8 +360,8 @@ private function fetchFilecacheByPathHashes(array $pathHashes): array {
360360 * empty.
361361 */
362362 private function deleteParentsFromFileCache (int $ folderId , int $ storageId ): void {
363- $ qb = $ this ->connection ->getTypedQueryBuilder ();
364- $ result = $ qb ->selectColumns ('fileid ' , 'path ' , 'storage ' , 'parent ' )
363+ $ qb = $ this ->connection ->getQueryBuilder ();
364+ $ result = $ qb ->select ('fileid ' , 'path ' , 'storage ' , 'parent ' )
365365 ->from ('filecache ' )
366366 ->where ($ qb ->expr ()->eq ('parent ' , $ qb ->createNamedParameter ($ folderId )))
367367 ->setMaxResults (1 )
@@ -376,8 +376,8 @@ private function deleteParentsFromFileCache(int $folderId, int $storageId): void
376376 }
377377
378378 // Get new parent
379- $ qb = $ this ->connection ->getTypedQueryBuilder ();
380- $ result = $ qb ->selectColumns ('fileid ' , 'path ' , 'parent ' )
379+ $ qb = $ this ->connection ->getQueryBuilder ();
380+ $ result = $ qb ->select ('fileid ' , 'path ' , 'parent ' )
381381 ->from ('filecache ' )
382382 ->where ($ qb ->expr ()->eq ('fileid ' , $ qb ->createNamedParameter ($ folderId )))
383383 ->andWhere ($ qb ->expr ()->eq ('storage ' , $ qb ->createNamedParameter ($ storageId )))
@@ -388,7 +388,7 @@ private function deleteParentsFromFileCache(int $folderId, int $storageId): void
388388 if ($ row !== false ) {
389389 $ parentFolderId = (int )$ row ['parent ' ];
390390
391- $ qb = $ this ->connection ->getTypedQueryBuilder ();
391+ $ qb = $ this ->connection ->getQueryBuilder ();
392392 $ qb ->delete ('filecache ' )
393393 ->where ($ qb ->expr ()->eq ('fileid ' , $ qb ->createNamedParameter ($ folderId )))
394394 ->andWhere ($ qb ->expr ()->eq ('storage ' , $ qb ->createNamedParameter ($ storageId )))
0 commit comments