ZF-3350: PartialLoop should not cast Traversable objects to arrays


Currently, PartialLoop checks to see if $model implements toArray(), and, if so, uses that method to cast to an array. However, this is not always the desired behavior -- in the case of a Zend_Db_Table_Rowset, the developer may want to pass the individual rows as objects to the partial, allowing the ability to call methods on it.

The behavior should be changed; if the object implements Traversable, PartialLoop should simply iterate over it.


Committed to trunk and 1.5 and 1.6 release branches