Skip to content

Commit 9815f38

Browse files
authored
Merge branch 'master' into date-time-interface
2 parents b9f2a95 + 73b6a91 commit 9815f38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Jenssegers/Mongodb/Connection.php

+10
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,16 @@ protected function getDefaultSchemaGrammar()
266266
{
267267
return new Schema\Grammar();
268268
}
269+
270+
/**
271+
* Set database.
272+
* @param \MongoDB\Database $db
273+
*/
274+
public function setDatabase(\MongoDB\Database $db)
275+
{
276+
$this->db = $db;
277+
}
278+
269279

270280
/**
271281
* Dynamically pass methods to the connection.

0 commit comments

Comments
 (0)