protected function _get_result() { $rows = array(); while ($res = $this->_cws->get_result()) { foreach ($res as $key => $val) { $rows[] = $val; } } $obj = new arrayObject($rows); $this->_resObj = $obj->getIterator(); }