Skip to content

Commit ae00801

Browse files
authored
Merge pull request #1696 from emprove/master
reassigned getDatabaseName method
2 parents 4f999ba + 625033e commit ae00801

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/Jenssegers/Mongodb/Connection.php

+8
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ public function getMongoClient()
113113
return $this->connection;
114114
}
115115

116+
/**
117+
* {@inheritdoc}
118+
*/
119+
public function getDatabaseName()
120+
{
121+
return $this->getMongoDB()->getDatabaseName();
122+
}
123+
116124
/**
117125
* Create a new MongoDB connection.
118126
*

0 commit comments

Comments
 (0)