We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09fcda8 commit bb292f9Copy full SHA for bb292f9
src/Jenssegers/Mongodb/Connection.php
@@ -266,6 +266,16 @@ protected function getDefaultSchemaGrammar()
266
{
267
return new Schema\Grammar();
268
}
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
279
280
/**
281
* Dynamically pass methods to the connection.
0 commit comments