From 0380452c2a3c39606e06456ccb237e8eaa08bedc Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 4 Aug 2010 19:01:27 +0000 Subject: [PATCH] added some docuhub links git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301861 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongo/construct.xml | 4 ++++ reference/mongo/mongodb/authenticate.xml | 8 ++++++++ reference/mongo/mongodb/command.xml | 8 +++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongo/construct.xml b/reference/mongo/mongo/construct.xml index 287608aeaf..e555c6a010 100644 --- a/reference/mongo/mongo/construct.xml +++ b/reference/mongo/mongo/construct.xml @@ -292,6 +292,10 @@ $m2 = new Mongo("mongodb://ny1.example.com", array("replicaSet" => true)); If you include seeds from two separate replica sets, behavior is undefined. + See the + core documentation on + replica sets for more information. + <function>Mongo::__construct</function> persistent connection example diff --git a/reference/mongo/mongodb/authenticate.xml b/reference/mongo/mongodb/authenticate.xml index b4fe008c74..fd5e127fca 100644 --- a/reference/mongo/mongodb/authenticate.xml +++ b/reference/mongo/mongodb/authenticate.xml @@ -18,6 +18,14 @@ enabled for the database server (it's not, by default), you need to log in before the database will allow you to do anything. + + In general, you should use the authenticate built into + Mongo::__construct in preference to this method. If you + authenticate on connection and the connection drops and reconnects during + your session, you'll be reauthenticated. If you manually authenticated using + this method and the connection drops, you'll have to call this method again + once you're reconnected. + This method is identical to running: diff --git a/reference/mongo/mongodb/command.xml b/reference/mongo/mongodb/command.xml index 75c90600d7..573e7c84c8 100644 --- a/reference/mongo/mongodb/command.xml +++ b/reference/mongo/mongodb/command.xml @@ -162,7 +162,13 @@ User 4af467e4fd543cce7b0ea8e2 had 1 sale(s). &reftitle.seealso; - MongoDB core docs on database commands. + MongoDB core docs on + database commands + and on individual commands: + findAndModify, + getLastError, and + repair (dozens more + exist, there are merely a few examples).