mageplus/mageplus — pull request #42 by LeeSaferite (2012-05-25 15:56:41+00:00)
Title: Fixed bug EAV abstract entity collection object

The call to toArray() in Mage_Eav_Model_Entity_Collection_Abstract was
broken as it was iterating over $this->_items directly instead of using
the IteratorAggregate interface to iterate over the collection directly
via $this

The $this->_items array is not populated until a call to load() has
happened on a collection. The getIterator() method internally calls
load() before wrapping $this->_items in an iterator object.

The toXml method was actually using $this to iterate over collection
items and functioning properly while toArray was not.