julien-c/mongovel — pull request #1 by Anahkiasen (2013-03-03 01:48:32+00:00)
Title: Last night modifications

- Created a `Mongovel\Cursor` class that wraps `MongoCursor` while extending Illuminate's `Collection` class — the latter implements interesting interfaces such as `JsonSerializable` which per example allows you to directly do things like `return Response::json(Document::find())`. This will take into account both the Cursor and the models's `toArray` method, taking into account hidden fields and such.
- I added support for the aformentioned hidden fields on models
- I made the `update` method use `handleParameters` so you can now do `Document::update('documentId', array())
- Fixed some bugs and added comments where needed