MongoDB: removed iterator to array conversion
This commit is contained in:
parent
c369236333
commit
fd4344c866
|
@ -130,12 +130,12 @@ if (isset($_GET["mongo"])) {
|
|||
$val = preg_replace('~ DESC$~', '', $val, 1, $count);
|
||||
$sort[$val] = ($count ? -1 : 1);
|
||||
}
|
||||
return new Min_Result(iterator_to_array($this->_conn->_db->selectCollection($table)
|
||||
return new Min_Result($this->_conn->_db->selectCollection($table)
|
||||
->find(array(), $select)
|
||||
->sort($sort)
|
||||
->limit(+$limit)
|
||||
->skip($page * $limit)
|
||||
));
|
||||
);
|
||||
}
|
||||
|
||||
function insert($table, $set) {
|
||||
|
|
Loading…
Reference in a new issue