From 4e4d8d200685dcebd710e3bbfe23aef47ab5581a Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Tue, 29 Jan 2013 16:09:29 +0000 Subject: [PATCH] Document non-boolean return values for MongoCollection::ensureIndex() https://jira.mongodb.org/browse/PHP-671 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329341 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocollection/ensureindex.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongocollection/ensureindex.xml b/reference/mongo/mongocollection/ensureindex.xml index dcdc7cdeaa..8a0dd47b6e 100644 --- a/reference/mongo/mongocollection/ensureindex.xml +++ b/reference/mongo/mongocollection/ensureindex.xml @@ -147,7 +147,12 @@ &reftitle.returnvalues; - Returns &true;. + Returns an array containing the status of the update if the + "w" option is set. Otherwise, returns &true;. + + + Fields in the status array are described in the documentation for + MongoCollection::insert.