diff --git a/Classes/DataCollector/TcaDataCollector.php b/Classes/DataCollector/TcaDataCollector.php index f1707704..2597eb49 100644 --- a/Classes/DataCollector/TcaDataCollector.php +++ b/Classes/DataCollector/TcaDataCollector.php @@ -176,9 +176,10 @@ public function getRecords() $queryBuilder = $this->buildUidListQueryBuilder(true); - $statement = $queryBuilder->execute(); + /** @var \Doctrine\DBAL\ForwardCompatibility\Result */ + $result = $queryBuilder->execute(); - while ($rawRecord = $statement->fetch()) { + foreach ($result as $rawRecord) { yield $this->getRecord($rawRecord['uid']); } } @@ -210,8 +211,9 @@ public function getUpdatedRecords($updateUidList) ]); } - $statement = $queryBuilder->execute(); - $record = $statement->fetch(); + /** @var \Doctrine\DBAL\ForwardCompatibility\Result */ + $result = $queryBuilder->execute(); + $record = $result->fetchAssociative(); if ($record) { $sourceLanguageUid = $record[$tca['ctrl']['languageField']] > 0 ? $record[$tca['ctrl']['transOrigPointerField']] : $record['uid'];