diff --git a/src/Migration/Migration1711618833SubscriptionCurrency.php b/src/Migration/Migration1711618833SubscriptionCurrency.php index 338d44e30..6ea1edbb0 100644 --- a/src/Migration/Migration1711618833SubscriptionCurrency.php +++ b/src/Migration/Migration1711618833SubscriptionCurrency.php @@ -35,8 +35,10 @@ public function update(Connection $connection): void //load used currencies $sql = "SELECT DISTINCT `currency` FROM `mollie_subscription`"; $statement = $connection->executeQuery($sql); - $currencies = array_keys($statement->fetchAllAssociativeIndexed()); - + $currencies = []; + while ($row = $statement->fetchAssociative()) { + $currencies[]=$row['currency']; + } //get the data for each currency $sql = "SELECT HEX(`id`) as `id`,`iso_code`,`item_rounding`,`total_rounding` FROM `currency` WHERE `iso_code` IN(:currencies)"; $statement = $connection->executeQuery($sql, [