-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
QueryResult and CommandResult custom iterators not yet implemented. setIteratorClass(), setIteratorInitCallback(), and getIterator() should throw a "not implemented" exception for now.
Currently, these result objects use phongo_result_get_iterator() to return a zend_object_iterator, which is not a real object; however, it does work with language constructs (e.g. foreach)) and methods such as iterator_to_array().
Once an actual iterator class is supported (including a default implementation), getIterator() should return an actual PHP object instead of a zend_object_iterator.