/**
* Throws an exception if the DocumentManager is closed or currently not active.
*
* @throws ORMException If the DocumentManager is closed.
*/
private function _errorIfClosed()
{
if ($this->_closed) {
throw MongoDBException::documentManagerClosed();
}
}