Php 使用mongodb操作时未定义的方法AggregateCursors()

Php 使用mongodb操作时未定义的方法AggregateCursors(),php,mongodb,Php,Mongodb,使用PHP+MongoDB时出现错误 undefined method MongoCollection::aggregateCursor() [ $aggregate = array(array('$group' => array('_id' => '$player_id','player_total_score' => array('$sum' => '$total_score')))); $result = $collection->aggregateCur

使用
PHP
+
MongoDB
时出现错误

undefined method MongoCollection::aggregateCursor()

[ $aggregate = array(array('$group' => array('_id' => '$player_id','player_total_score' => array('$sum' => '$total_score'))));

$result = $collection->aggregateCursor($aggregate);]

你能给我们看一下相关的代码吗?Mongodb版本支持是“1.4.5”[表示高于1.3.0]你能给我们看一下相关的代码吗?Mongodb版本支持是“1.4.5”[表示高于1.3.0]