[fw-general] ZF2 DB Result position forwarded?

2012-06-21 Thread henit
Hi. I have a kind of strange situation. I have a Zend\Db\ResultSet object from a db query with 5 rows of data in it. This object is then sent to the view for display. When i send it to the content template (the ViewModel returned by the controller action method), it works fine: $model = new

Re: [fw-general] ZF2 DB Result position forwarded?

2012-06-21 Thread Ralph Schindler
throw new Exception\RuntimeException('This result is a forward only result set, calling rewind() after moving forward is not supported'); This occurs because $this-position is set to 5, as if it has allready traversed the results before it gets to the view. I only use the result object one