Zend Framework

Zend_Db_Table_Row_Abstract objects should be iterable/traversable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.4
  • Fix Version/s: 1.10.5
  • Component/s: Zend_Db_Table
  • Labels:
    None

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); }

Activity

Hide
Ralph Schindler added a comment -

Updated title and description.

Show
Ralph Schindler added a comment - Updated title and description.
Hide
Ralph Schindler added a comment -

Fixed in r22229 in trunk and r22230 in branch 1.10

Show
Ralph Schindler added a comment - Fixed in r22229 in trunk and r22230 in branch 1.10

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: