Commit 3af22ece by Alexander Makarov

Fixed mongodb to use non-deprecated method of determining if there's an active connection

parent 440c402b
...@@ -219,7 +219,7 @@ class Connection extends Component ...@@ -219,7 +219,7 @@ class Connection extends Component
*/ */
public function getIsActive() public function getIsActive()
{ {
return is_object($this->mongoClient) && $this->mongoClient->connected; return is_object($this->mongoClient) && $this->mongoClient->getConnections() != [];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment