{"action":"created","comment":{"url":"https://api.github.com/repos/doctrine/mongodb/pulls/comments/37156571","id":37156571,"diff_hunk":"@@ -50,6 +50,13 @@ class EagerCursor implements CursorInterface\n     protected $initialized = false;\n \n     /**\n+     * Whether the cursor started iterating. This is necessary to get getNext() and hasNext() to work properly\n+     *\n+     * @var bool","path":"lib/Doctrine/MongoDB/EagerCursor.php","position":6,"original_position":6,"commit_id":"c1d44c3dae6271410dc211cbb79f687e23f715f4","original_commit_id":"c1d44c3dae6271410dc211cbb79f687e23f715f4","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"body":"I think we use \"boolean\" in most places?","created_at":"2015-08-17T03:28:58Z","updated_at":"2015-08-17T03:28:58Z","html_url":"https://github.com/doctrine/mongodb/pull/225#discussion_r37156571","pull_request_url":"https://api.github.com/repos/doctrine/mongodb/pulls/225","_links":{"self":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/comments/37156571"},"html":{"href":"https://github.com/doctrine/mongodb/pull/225#discussion_r37156571"},"pull_request":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/doctrine/mongodb/pulls/225","id":42531126,"html_url":"https://github.com/doctrine/mongodb/pull/225","diff_url":"https://github.com/doctrine/mongodb/pull/225.diff","patch_url":"https://github.com/doctrine/mongodb/pull/225.patch","issue_url":"https://api.github.com/repos/doctrine/mongodb/issues/225","number":225,"state":"open","locked":false,"title":"Include all cursor methods in cursor interface","user":{"login":"alcaeus","id":383198,"avatar_url":"https://avatars.githubusercontent.com/u/383198?v=3","gravatar_id":"","url":"https://api.github.com/users/alcaeus","html_url":"https://github.com/alcaeus","followers_url":"https://api.github.com/users/alcaeus/followers","following_url":"https://api.github.com/users/alcaeus/following{/other_user}","gists_url":"https://api.github.com/users/alcaeus/gists{/gist_id}","starred_url":"https://api.github.com/users/alcaeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcaeus/subscriptions","organizations_url":"https://api.github.com/users/alcaeus/orgs","repos_url":"https://api.github.com/users/alcaeus/repos","events_url":"https://api.github.com/users/alcaeus/events{/privacy}","received_events_url":"https://api.github.com/users/alcaeus/received_events","type":"User","site_admin":false},"body":"This extends the common cursor interface introduced in #209 to include all methods currently available in the cursor. This makes the ```Cursor``` and ```EagerCursor``` more interchangeable in ODM, allowing us to plug both classes into ```ODM\\Cursor``` once that has been adapted.\r\n\r\nThe ```hasNext``` and ```getNext``` methods have to be simulated by advancing and rewinding the array pointer as well as checking if the cursor has started iterating.","created_at":"2015-08-16T05:34:28Z","updated_at":"2015-08-17T03:28:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d723689116df205bb57053d51283f3b9a28f93c","assignee":null,"milestone":{"url":"https://api.github.com/repos/doctrine/mongodb/milestones/4","html_url":"https://github.com/doctrine/mongodb/milestones/1.2.0","labels_url":"https://api.github.com/repos/doctrine/mongodb/milestones/4/labels","id":502562,"number":4,"title":"1.2.0","description":"","creator":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":28,"state":"open","created_at":"2013-12-02T15:58:07Z","updated_at":"2015-08-16T05:51:08Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/doctrine/mongodb/pulls/225/commits","review_comments_url":"https://api.github.com/repos/doctrine/mongodb/pulls/225/comments","review_comment_url":"https://api.github.com/repos/doctrine/mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doctrine/mongodb/issues/225/comments","statuses_url":"https://api.github.com/repos/doctrine/mongodb/statuses/c1d44c3dae6271410dc211cbb79f687e23f715f4","head":{"label":"doctrine:extend-cursor-interface","ref":"extend-cursor-interface","sha":"c1d44c3dae6271410dc211cbb79f687e23f715f4","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":1124520,"name":"mongodb","full_name":"doctrine/mongodb","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/mongodb","description":"PHP MongoDB Abstraction Layer","fork":false,"url":"https://api.github.com/repos/doctrine/mongodb","forks_url":"https://api.github.com/repos/doctrine/mongodb/forks","keys_url":"https://api.github.com/repos/doctrine/mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/mongodb/teams","hooks_url":"https://api.github.com/repos/doctrine/mongodb/hooks","issue_events_url":"https://api.github.com/repos/doctrine/mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/mongodb/events","assignees_url":"https://api.github.com/repos/doctrine/mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/mongodb/tags","blobs_url":"https://api.github.com/repos/doctrine/mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/mongodb/languages","stargazers_url":"https://api.github.com/repos/doctrine/mongodb/stargazers","contributors_url":"https://api.github.com/repos/doctrine/mongodb/contributors","subscribers_url":"https://api.github.com/repos/doctrine/mongodb/subscribers","subscription_url":"https://api.github.com/repos/doctrine/mongodb/subscription","commits_url":"https://api.github.com/repos/doctrine/mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/mongodb/merges","archive_url":"https://api.github.com/repos/doctrine/mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/mongodb/downloads","issues_url":"https://api.github.com/repos/doctrine/mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/mongodb/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/mongodb/releases{/id}","created_at":"2010-11-30T04:42:45Z","updated_at":"2015-07-30T12:31:50Z","pushed_at":"2015-08-16T05:50:30Z","git_url":"git://github.com/doctrine/mongodb.git","ssh_url":"git@github.com:doctrine/mongodb.git","clone_url":"https://github.com/doctrine/mongodb.git","svn_url":"https://github.com/doctrine/mongodb","homepage":"http://www.doctrine-project.org","size":2618,"stargazers_count":215,"watchers_count":215,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":9,"forks":123,"open_issues":9,"watchers":215,"default_branch":"master"}},"base":{"label":"doctrine:master","ref":"master","sha":"91461ef9ef1b18a3b834767207bbef5481337de3","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":1124520,"name":"mongodb","full_name":"doctrine/mongodb","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/mongodb","description":"PHP MongoDB Abstraction Layer","fork":false,"url":"https://api.github.com/repos/doctrine/mongodb","forks_url":"https://api.github.com/repos/doctrine/mongodb/forks","keys_url":"https://api.github.com/repos/doctrine/mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/mongodb/teams","hooks_url":"https://api.github.com/repos/doctrine/mongodb/hooks","issue_events_url":"https://api.github.com/repos/doctrine/mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/mongodb/events","assignees_url":"https://api.github.com/repos/doctrine/mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/mongodb/tags","blobs_url":"https://api.github.com/repos/doctrine/mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/mongodb/languages","stargazers_url":"https://api.github.com/repos/doctrine/mongodb/stargazers","contributors_url":"https://api.github.com/repos/doctrine/mongodb/contributors","subscribers_url":"https://api.github.com/repos/doctrine/mongodb/subscribers","subscription_url":"https://api.github.com/repos/doctrine/mongodb/subscription","commits_url":"https://api.github.com/repos/doctrine/mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/mongodb/merges","archive_url":"https://api.github.com/repos/doctrine/mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/mongodb/downloads","issues_url":"https://api.github.com/repos/doctrine/mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/mongodb/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/mongodb/releases{/id}","created_at":"2010-11-30T04:42:45Z","updated_at":"2015-07-30T12:31:50Z","pushed_at":"2015-08-16T05:50:30Z","git_url":"git://github.com/doctrine/mongodb.git","ssh_url":"git@github.com:doctrine/mongodb.git","clone_url":"https://github.com/doctrine/mongodb.git","svn_url":"https://github.com/doctrine/mongodb","homepage":"http://www.doctrine-project.org","size":2618,"stargazers_count":215,"watchers_count":215,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":9,"forks":123,"open_issues":9,"watchers":215,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/225"},"html":{"href":"https://github.com/doctrine/mongodb/pull/225"},"issue":{"href":"https://api.github.com/repos/doctrine/mongodb/issues/225"},"comments":{"href":"https://api.github.com/repos/doctrine/mongodb/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doctrine/mongodb/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/doctrine/mongodb/statuses/c1d44c3dae6271410dc211cbb79f687e23f715f4"}}}}