Skip to content

Commit

Permalink
Added QueryBuilder::getGlobalConnection method.
Browse files Browse the repository at this point in the history
  • Loading branch information
TCB13 committed Sep 13, 2019
1 parent fa44d20 commit 246067a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public static function setGlobalConnection(Database $connection)
self::$globalConnection = $connection;
}

public static function getGlobalConnection(): ?Database
{
return self::$globalConnection ?? null;
}

/**
* @param $collection
*
Expand Down

0 comments on commit 246067a

Please sign in to comment.