ZF-4141: Zend_View_Helper_PartialLoop forces objects to array conversion when object exposes toArray()
I would like to use the ability exposed in the partialLoop helper to access a Zend_Db_Table_Rowset_Abstract as an object.
Unfortunately, if an object exposes toArray() as one of it's method (which is the case here for Zend_Db_Table_Rowset_Abstract) , then it is automatically converted to an array, instead of offering the possibility to use it as an object instance.
$this->partialLoop()->setObjectKey('object'); echo $this->partialLoop('my_partial_view',$rowset_data);
Make sure that $rowset_data is of type Zend_Db_Table_Rowset_Abstract