ZF-9836: Zend_Db_Table_Row_Abstract objects should be iterable/traversable
Description
Categorized as bug since there are various serialization routines in ZF that would like to be able to introspect Row objects.
Because Zend_Db_Table_Row_Abstract cannot be iterated over in a foreach loop the serializer cannot make the column values available to Flash Builder and as such, Flash Builder cannot introspect the classes.
To fix the issue Zend_Db_Table_Row_Abstract needs to implement IteratorAggregate (Thanks Ralph) so the AMF serializer can work properly, along with the getIterator code:
public function getIterator()
{
return new ArrayIterator($this->_data);
}
Comments
Posted by Ralph Schindler (ralph) on 2010-05-21T13:42:10.000+0000
Updated title and description.
Posted by Ralph Schindler (ralph) on 2010-05-21T13:59:58.000+0000
Fixed in r22229 in trunk and r22230 in branch 1.10