mirror of
https://github.com/dg/dibi.git
synced 2025-08-20 21:02:05 +02:00
- DibiResultIterator is back (from rev. 123)
This commit is contained in:
@@ -587,11 +587,11 @@ class DibiResult extends DibiObject implements IDataSource
|
||||
* Required by the IteratorAggregate interface.
|
||||
* @param int offset
|
||||
* @param int limit
|
||||
* @return ArrayIterator
|
||||
* @return DibiResultIterator
|
||||
*/
|
||||
final public function getIterator($offset = NULL, $limit = NULL)
|
||||
{
|
||||
return new ArrayIterator($this->fetchAll($offset, $limit));
|
||||
return new DibiResultIterator($this, $offset, $limit);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user