Skip to content

Commit ac46d12

Browse files
committed
Fix caching of database objects in SingletonConnector
1 parent 658c8c6 commit ac46d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB/SingletonConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ private static function getConnect(string $database): DriverPDOInterface
6666
}
6767
}
6868
if (array_key_exists($database, self::$database)) return self::$database[$database];
69-
return new self::$driver($database, $module['prefix'] ?? '');
69+
return self::$database[$database] = new self::$driver($database, $module['prefix'] ?? '');
7070
}
7171
}

0 commit comments

Comments
 (0)