doctrine/mongodb — pull request #68 by Parad0X (2012-08-13 22:50:59+00:00)
Title: Cursor should be reset and limit should be restored after calling getSingleResult

Currently calling getSingleResult leaves cursor in a weird state.
I think the following scenario makes sense

```php
getSingleResult();
echo 'Newest document in this collection was created: ' . date('c', $document['created_at']->sec);

foreach ($cursor as $document) {
// do something with a document
}
```

Currently if I try iterating over a cursor after calling getSingleResult I'm only going to get the second document in that cursor.