/** * Return the next item in the iterator. * @return object Record */ function &next() { $result =& parent::next(); $doc = $result->getDocument(); $recordId = $doc->getFieldValue('harvesterRecordId'); unset($result, $doc); $returner =& $this->recordDao->getRecord($recordId); return $returner; }