UnionOfRAD/lithium — Issue #184: Rewinding the Mongo Cursor
Author: BenjaminN
Created: 2011-11-02 13:26:36+00:00
State: open

I have a model called Reports with a list of products inside.

When I'm doing a foreach on the list of products, I can display all products. But then, when I'm doing another foreach, it's not working anymore. I guess I should rewind after the first foreach, but rewind() does nothing.

You can see the code here: http://pastium.org/view/faf249843a8ddc46afafec9209961c19