svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ group.xml

From: Date: Sun, 03 Mar 2013 00:18:49 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ group.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-11063@lists.php.net to get a copy of this message
bjori Sun, 03 Mar 2013 00:18:49 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=329620 Log: Fixed bug#63091 MongoCollection::group() example needs updating # Thanks fhagard at lightcube dot us ! Bug: https://bugs.php.net/63091 (Open) MongoCollection::group() example needs updating Changed paths: U phpdoc/en/trunk/reference/mongo/mongocollection/group.xml Modified: phpdoc/en/trunk/reference/mongo/mongocollection/group.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/group.xml 2013-03-02 21:37:41 UTC (rev 329619) +++ phpdoc/en/trunk/reference/mongo/mongocollection/group.xml 2013-03-03 00:18:49 UTC (rev 329620) @@ -188,7 +188,7 @@ $reduce = "function (obj, prev) { prev.count++; }"; // only use documents where the "a" field is greater than 1 -$condition = array("a" => array( '$gt' => 1)); +$condition = array('condition' => array("a" => array( '$gt' => 1))); $g = $collection->group($keys, $initial, $reduce, $condition);

« previous php.doc.cvs (#11063) next »