Doctrine\MongoDB\Connection::getMongo PHP Method

getMongo() public method

Get the MongoClient instance being wrapped.
Deprecation: 1.1 Replaced by getMongoClient(); will be removed for 2.0
public getMongo ( ) : MongoClient
return MongoClient
    public function getMongo()
    {
        return $this->getMongoClient();
    }

Usage Example

Beispiel #1
0
 public function testInitialize()
 {
     $conn = new Connection();
     $this->assertNull($conn->getMongo());
     $conn->initialize();
     $this->assertInstanceOf('Mongo', $conn->getMongo());
 }
All Usage Examples Of Doctrine\MongoDB\Connection::getMongo