{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/dfdb05bd2f7bdce26e16359210ae1a1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"dfdb05bd2f7bdce26e16359210ae1a1b","url":"https://api.github.com/users/zapatista","login":"zapatista","id":32372},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-29T19:49:09Z","comments":2,"closed_at":"2011-10-29T19:49:09Z","url":"https://api.github.com/repos/coen-hyde/Shanty-Mongo/issues/48","body":"class Application_Model_Db_Table_Post extends Shanty_Mongo_Document \r\n{\r\n\tprotected static $_db = 'holemp';\r\n\tprotected static $_collection = 'user';\r\n}\r\n\r\n$user = Application_Model_Db_Table_Post::all();\r\n\r\nwhy not work on me ?\r\n\r\noutput:\r\nShanty_Mongo_Iterator_Cursor Object\r\n(\r\n    [_cursor:protected] => MongoCursor Object\r\n        (\r\n        )\r\n\r\n    [_config:protected] => Array\r\n        (\r\n            [connectionGroup] => default\r\n            [db] => holemp\r\n            [collection] => user\r\n            [documentClass] => Application_Model_Db_Table_Post\r\n            [documentSetClass] => Shanty_Mongo_DocumentSet\r\n        )\r\n\r\n)","html_url":"https://github.com/coen-hyde/Shanty-Mongo/issues/48","number":48,"title":"Collection all() failing","id":2086886,"created_at":"2011-10-29T13:06:36Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3efe13b633ae575523a5b27f465ed982?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3efe13b633ae575523a5b27f465ed982","url":"https://api.github.com/users/coen-hyde","login":"coen-hyde","id":123503},"updated_at":"2011-10-29T19:49:09Z","url":"https://api.github.com/repos/coen-hyde/Shanty-Mongo/issues/comments/2566563","body":"Tom is correct. You need to iterate over the cursor to fetch the documents from the database.","id":2566563,"created_at":"2011-10-29T19:49:09Z"}}