diff --git a/reference/mongo/mongo/construct.xml b/reference/mongo/mongo/construct.xml
index d319d28e4a..847868a711 100644
--- a/reference/mongo/mongo/construct.xml
+++ b/reference/mongo/mongo/construct.xml
@@ -13,8 +13,6 @@
Mongo::__construct
stringserver"mongodb://localhost:27017"
arrayoptionsarray("connect" => &true;)
- boolpersistfalse
- boolgarbagefalse
If no parameters are passed, this connects to "localhost:27017" (or whatever
@@ -51,31 +49,6 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db
to authenticate with. If db is not specified, "admin"
will be used.
-
-
- If you elect not to connect immediately (you pass the option
- array("connect" => false)), you will need to call
- Mongo::connect before doing any database operations.
-
-
-
-
- false));
-
-// throws a MongoException, as $mongo has not been fully initialized yet
-$mongo->selectDB("foo")->command(array("distinct" => "bar", "key" => "age"));
-
-// okay
-$mongo->connect();
-$mongo->selectDB("foo")->command(array("distinct" => "bar", "key" => "age"));
-
-?>
-]]>
-
-
@@ -259,7 +232,7 @@ $mongo->selectDB("foo")->command(array("distinct" => "bar", "key" => "age"));
- 1.1.4
+ 1.2.0
Added the username and password
options.