Skip to content

Commit

Permalink
[TASK] Prepare for Doctrine 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala committed Jun 21, 2022
1 parent 1aec267 commit bc9ce12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Classes/DataCollector/TcaDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit bc9ce12

Please sign in to comment.