[FOLLOWUP][TASK] Doctrine: migrate ext:impexp 08/48508/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 8 Jun 2016 14:18:25 +0000 (16:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 8 Jun 2016 14:53:30 +0000 (16:53 +0200)
Functionals found some issues, let's make them happy again ;)

Change-Id: Ie0314146ed8fe7a286a2c1e3cea186f4deeeafb6
Resolves: #76469
Releases: master
Reviewed-on: https://review.typo3.org/48508
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/impexp/Classes/Import.php

index 1200a1e..df9cf45 100644 (file)
@@ -538,13 +538,17 @@ class Import extends ImportExport
      */
     protected function fetchStorageRecords()
     {
-        return GeneralUtility::makeInstance(ConnectionPool::class)
+        $result = GeneralUtility::makeInstance(ConnectionPool::class)
             ->getQueryBuilderForTable('sys_file_storage')
             ->select('*')
             ->from('sys_file_storage')
             ->orderBy('uid')
-            ->execute()
-            ->fetchAll();
+            ->execute();
+        $rows = [];
+        while ($row = $result->fetch()) {
+            $rows[$row['uid']] = $row;
+        }
+        return $rows;
     }
 
     /**