Skip to content

Commit 246067a

Browse files
committed
Added QueryBuilder::getGlobalConnection method.
1 parent fa44d20 commit 246067a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/QueryBuilder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ public static function setGlobalConnection(Database $connection)
7474
self::$globalConnection = $connection;
7575
}
7676

77+
public static function getGlobalConnection(): ?Database
78+
{
79+
return self::$globalConnection ?? null;
80+
}
81+
7782
/**
7883
* @param $collection
7984
*

0 commit comments

Comments
 (0)