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 time, and the object has position set to -1 before it is sent to
$menu->setVariable but when the object is available in the view, it is
position=5.

Sound like someone is traversing it for some reason.

It looks like the variable object is traversed when sent to a child model
but not to the main view. Any idea what could cause this?

This sounds like an odd problem, in general, unless there is good reason to do so, no one should be travsersing the dataset. I'll have to ask Matthew whats going on here.

This happens b/c you're using mysqli, and by default, Mysqli only does forward-moving result sets. If you plan on using Mysqli and know that memory is not going to be an issue, you'll either need to

$resultSet->getDataSource()->buffer();

In the future, we'll have an option that you can opt to have fully buffered result sets from mysqli.

-ralph

--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to