Skip to content

Commit

Permalink
Fixed: #203
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Apr 18, 2014
1 parent a5aace4 commit bdd73c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ public function search($query = array(), $project = array(), $partialMatch=false
*/
public function aggregate($pipeline){
$this->trace(__FUNCTION__);
return Yii::app()->mongodb->aggregate($this->collectionName(), $pipeline);
return $this->getDbConnection()->aggregate($this->collectionName(), $pipeline);
}

/**
Expand Down

0 comments on commit bdd73c8

Please sign in to comment.