Skip to content

Commit

Permalink
Changed returned value form EMongoDocument::search() method to match …
Browse files Browse the repository at this point in the history
…Yii default behavior

Now search() method returns DataProvider instead of $this,
that was incostintent with standard Yii AR
  • Loading branch information
canni committed Feb 14, 2011
1 parent 40795fe commit c658dc2
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 @@ -1281,7 +1281,7 @@ public function search($caseSensitive = false)

$this->setDbCriteria($criteria);

return $this;
return new EMongoDocumentDataProvider($this);
}

/**
Expand Down

0 comments on commit c658dc2

Please sign in to comment.