Issues

ZF-9836: Zend_Db_Table_Row_Abstract objects should be iterable/traversable

Issue Type: Bug Created: 2010-05-13T14:54:38.000+0000 Last Updated: 2010-05-21T13:59:59.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Kevin Schroeder (kschroeder) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db_Table

Related issues: Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts