Doc #63091 [Csd]: MongoCollection::group() example needs updating
| From: | bjori@php.net | Date: | Sun, 03 Mar 2013 00:19:35 +0000 |
| Subject: | Doc #63091 [Csd]: MongoCollection::group() example needs updating | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9612@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63091&edit=1
ID: 63091
Updated by: bjori@php.net
Reported by: fhagard at lightcube dot us
Summary: MongoCollection::group() example needs updating
Status: Closed
Type: Documentation Problem
Package: mongo
Operating System: *nix
PHP Version: Irrelevant
Assigned To: bjori
Block user comment: N
Private report: N
New Comment:
Heh. Wrong quickfix message.. This is now fixed in the docs ofcourse :)
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2013-03-03 00:18:58] bjori@php.net
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2013-03-03 00:18:45] bjori@php.net
Automatic comment from SVN on behalf of bjori
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 !
------------------------------------------------------------------------
[2012-09-14 14:47:08] fhagard at lightcube dot us
Description:
------------
---
From manual page: http://www.php.net/mongocollection.group#refsect1-
mongocollection.group-examples
---
In Example #2 MongoCollection::group(), the $condition array should be updated to:
$condition = array('condition' => array("a" => array( '$gt'
=> 1)));
instead of:
$condition = array("a" => array( '$gt' => 1));
As of 1.2.11+ there is a depreciation notice thrown since $options has been
modified.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63091&edit=1