update src/Mongodb.php.
This commit is contained in:
parent
9ebee15441
commit
9b56b4e360
|
@ -239,7 +239,7 @@ class Mongodb
|
||||||
if ($hasContextConnection) {
|
if ($hasContextConnection) {
|
||||||
$connection = Context::get($this->getContextKey());
|
$connection = Context::get($this->getContextKey());
|
||||||
}
|
}
|
||||||
if (!$connection instanceof MongoDbConnection) {
|
if (!$connection instanceof MongodbConnection) {
|
||||||
$pool = $this->factory->getPool($this->poolName);
|
$pool = $this->factory->getPool($this->poolName);
|
||||||
$connection = $pool->get()->getConnection();
|
$connection = $pool->get()->getConnection();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user