Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Fixing issue with just reduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed Dec 2, 2010
1 parent 644f12d commit 445ec61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/MongoDB/Query/Query.php
Expand Up @@ -127,8 +127,8 @@ public function execute(array $options = array())
{
switch ($this->query['type']) {
case self::TYPE_FIND:
if ($this->query['query']['reduce']) {
$this->query['query'][$this->cmd . 'where'] = $this->query['query']['reduce'];
if (isset($this->query['mapReduce']['reduce'])) {
$this->query['query'][$this->cmd . 'where'] = $this->query['mapReduce']['reduce'];
}
$cursor = $this->collection->find($this->query['query'], $this->query['select'], $options);
$this->prepareCursor($cursor);
Expand Down

0 comments on commit 445ec61

Please sign in to comment.