diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 7c3daf7974..9bdeaa046e 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -413,7 +413,7 @@ class DBA extends BaseObject */ public static function selectToArray(string $table, array $fields = [], array $condition = [], array $params = []) { - return self::$database->selectToArray($table, $fields, $condition, $params); + return self::getClass(Database::class)->selectToArray($table, $fields, $condition, $params); } /**