Breaking: #75760 - Return type of LocalizationRepository::getRecordsToCopyDatabaseResult changed

See forge#75760


The return type of LocalizationRepository::getRecordsToCopyDatabaseResult() has changed. Instead of returning either bool, \mysqli_result or object the return value always is a \Doctrine\DBAL\Driver\Statement.


Using the mentioned method will not yield the expected result type.

Affected Installations

Any installation with a 3rd party extension that uses the named method.


Change the way the result is being used to conform to the Doctrine API:

$result = $this->localizationRepository->getRecordsToCopyDatabaseResult(...);
while ($row = $result->fetch()) {
    // Do something here