Skip to content

Commit d41b3b7

Browse files
authored
Update DataProvider.php
1 parent 1c27e04 commit d41b3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sokil/Mongo/Yii/DataProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct($dataSource, $config = array())
2222
$this->_queryBuilder = $collection->find();
2323
}
2424
// query builder
25-
else if ($dataSource instanceof \Sokil\Mongo\QueryBuilder) {
25+
else if ($dataSource instanceof \Sokil\Mongo\Cursor) {
2626
$this->_queryBuilder = $dataSource;
2727
}
2828

0 commit comments

Comments
 (0)