Skip to content

Commit d701415

Browse files
committed
Merge pull request mongodb#1696 from emprove/master
reassigned getDatabaseName method
2 parents fca7dae + f7f555d commit d701415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Jenssegers/Mongodb/Connection.php

Lines changed: 8 additions & 0 deletions
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)