Skip to content

Commit

Permalink
Merge branch 'master' into date-time-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
divine committed Apr 30, 2021
2 parents b9f2a95 + 73b6a91 commit 9815f38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Jenssegers/Mongodb/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,16 @@ protected function getDefaultSchemaGrammar()
{
return new Schema\Grammar();
}

/**
* Set database.
* @param \MongoDB\Database $db
*/
public function setDatabase(\MongoDB\Database $db)
{
$this->db = $db;
}


/**
* Dynamically pass methods to the connection.
Expand Down

0 comments on commit 9815f38

Please sign in to comment.