{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42","id":40506665,"html_url":"https://github.com/avenirer/CodeIgniter-MY_Model/pull/42","diff_url":"https://github.com/avenirer/CodeIgniter-MY_Model/pull/42.diff","patch_url":"https://github.com/avenirer/CodeIgniter-MY_Model/pull/42.patch","issue_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/42","number":42,"state":"open","locked":false,"title":"Fixed keeping default return_as","user":{"login":"byybora","id":3393422,"avatar_url":"https://avatars.githubusercontent.com/u/3393422?v=3","gravatar_id":"","url":"https://api.github.com/users/byybora","html_url":"https://github.com/byybora","followers_url":"https://api.github.com/users/byybora/followers","following_url":"https://api.github.com/users/byybora/following{/other_user}","gists_url":"https://api.github.com/users/byybora/gists{/gist_id}","starred_url":"https://api.github.com/users/byybora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byybora/subscriptions","organizations_url":"https://api.github.com/users/byybora/orgs","repos_url":"https://api.github.com/users/byybora/repos","events_url":"https://api.github.com/users/byybora/events{/privacy}","received_events_url":"https://api.github.com/users/byybora/received_events","type":"User","site_admin":false},"body":"> Trying to get property of non-object\r\n\r\nFixed keeping default `return_as` on multiple relationships on same page.\r\n\r\nI try cast to array result item instead of changing to `return_as` with `as_array()` so i keep the model return type.","created_at":"2015-07-21T21:26:26Z","updated_at":"2015-07-21T21:26:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42/commits","review_comments_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42/comments","review_comment_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/42/comments","statuses_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/statuses/87ffd4f69b1390ef03720fe779dd90cce40f0153","head":{"label":"byybora:patch-3","ref":"patch-3","sha":"87ffd4f69b1390ef03720fe779dd90cce40f0153","user":{"login":"byybora","id":3393422,"avatar_url":"https://avatars.githubusercontent.com/u/3393422?v=3","gravatar_id":"","url":"https://api.github.com/users/byybora","html_url":"https://github.com/byybora","followers_url":"https://api.github.com/users/byybora/followers","following_url":"https://api.github.com/users/byybora/following{/other_user}","gists_url":"https://api.github.com/users/byybora/gists{/gist_id}","starred_url":"https://api.github.com/users/byybora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byybora/subscriptions","organizations_url":"https://api.github.com/users/byybora/orgs","repos_url":"https://api.github.com/users/byybora/repos","events_url":"https://api.github.com/users/byybora/events{/privacy}","received_events_url":"https://api.github.com/users/byybora/received_events","type":"User","site_admin":false},"repo":{"id":39104503,"name":"CodeIgniter-MY_Model","full_name":"byybora/CodeIgniter-MY_Model","owner":{"login":"byybora","id":3393422,"avatar_url":"https://avatars.githubusercontent.com/u/3393422?v=3","gravatar_id":"","url":"https://api.github.com/users/byybora","html_url":"https://github.com/byybora","followers_url":"https://api.github.com/users/byybora/followers","following_url":"https://api.github.com/users/byybora/following{/other_user}","gists_url":"https://api.github.com/users/byybora/gists{/gist_id}","starred_url":"https://api.github.com/users/byybora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byybora/subscriptions","organizations_url":"https://api.github.com/users/byybora/orgs","repos_url":"https://api.github.com/users/byybora/repos","events_url":"https://api.github.com/users/byybora/events{/privacy}","received_events_url":"https://api.github.com/users/byybora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/byybora/CodeIgniter-MY_Model","description":"","fork":true,"url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model","forks_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/forks","keys_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/teams","hooks_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/hooks","issue_events_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/issues/events{/number}","events_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/events","assignees_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/assignees{/user}","branches_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/branches{/branch}","tags_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/tags","blobs_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/git/refs{/sha}","trees_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/statuses/{sha}","languages_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/languages","stargazers_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/stargazers","contributors_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/contributors","subscribers_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/subscribers","subscription_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/subscription","commits_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/commits{/sha}","git_commits_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/git/commits{/sha}","comments_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/comments{/number}","issue_comment_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/issues/comments{/number}","contents_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/contents/{+path}","compare_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/merges","archive_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/downloads","issues_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/issues{/number}","pulls_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/pulls{/number}","milestones_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/milestones{/number}","notifications_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/labels{/name}","releases_url":"https://api.github.com/repos/byybora/CodeIgniter-MY_Model/releases{/id}","created_at":"2015-07-14T22:53:41Z","updated_at":"2015-07-14T22:53:45Z","pushed_at":"2015-07-21T21:26:15Z","git_url":"git://github.com/byybora/CodeIgniter-MY_Model.git","ssh_url":"git@github.com:byybora/CodeIgniter-MY_Model.git","clone_url":"https://github.com/byybora/CodeIgniter-MY_Model.git","svn_url":"https://github.com/byybora/CodeIgniter-MY_Model","homepage":null,"size":192,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"version-3.0"}},"base":{"label":"avenirer:version-3.0","ref":"version-3.0","sha":"128a9eacba558c022c6c77c4ef45d310cd5f7ab0","user":{"login":"avenirer","id":3034772,"avatar_url":"https://avatars.githubusercontent.com/u/3034772?v=3","gravatar_id":"","url":"https://api.github.com/users/avenirer","html_url":"https://github.com/avenirer","followers_url":"https://api.github.com/users/avenirer/followers","following_url":"https://api.github.com/users/avenirer/following{/other_user}","gists_url":"https://api.github.com/users/avenirer/gists{/gist_id}","starred_url":"https://api.github.com/users/avenirer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avenirer/subscriptions","organizations_url":"https://api.github.com/users/avenirer/orgs","repos_url":"https://api.github.com/users/avenirer/repos","events_url":"https://api.github.com/users/avenirer/events{/privacy}","received_events_url":"https://api.github.com/users/avenirer/received_events","type":"User","site_admin":false},"repo":{"id":19141615,"name":"CodeIgniter-MY_Model","full_name":"avenirer/CodeIgniter-MY_Model","owner":{"login":"avenirer","id":3034772,"avatar_url":"https://avatars.githubusercontent.com/u/3034772?v=3","gravatar_id":"","url":"https://api.github.com/users/avenirer","html_url":"https://github.com/avenirer","followers_url":"https://api.github.com/users/avenirer/followers","following_url":"https://api.github.com/users/avenirer/following{/other_user}","gists_url":"https://api.github.com/users/avenirer/gists{/gist_id}","starred_url":"https://api.github.com/users/avenirer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avenirer/subscriptions","organizations_url":"https://api.github.com/users/avenirer/orgs","repos_url":"https://api.github.com/users/avenirer/repos","events_url":"https://api.github.com/users/avenirer/events{/privacy}","received_events_url":"https://api.github.com/users/avenirer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avenirer/CodeIgniter-MY_Model","description":"","fork":false,"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model","forks_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/forks","keys_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/teams","hooks_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/hooks","issue_events_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/events{/number}","events_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/events","assignees_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/assignees{/user}","branches_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/branches{/branch}","tags_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/tags","blobs_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/git/refs{/sha}","trees_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/statuses/{sha}","languages_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/languages","stargazers_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/stargazers","contributors_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/contributors","subscribers_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/subscribers","subscription_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/subscription","commits_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/commits{/sha}","git_commits_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/git/commits{/sha}","comments_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/comments{/number}","issue_comment_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/comments{/number}","contents_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/contents/{+path}","compare_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/merges","archive_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/downloads","issues_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues{/number}","pulls_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls{/number}","milestones_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/milestones{/number}","notifications_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/labels{/name}","releases_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/releases{/id}","created_at":"2014-04-25T09:52:45Z","updated_at":"2015-07-21T04:29:58Z","pushed_at":"2015-07-21T10:35:15Z","git_url":"git://github.com/avenirer/CodeIgniter-MY_Model.git","ssh_url":"git@github.com:avenirer/CodeIgniter-MY_Model.git","clone_url":"https://github.com/avenirer/CodeIgniter-MY_Model.git","svn_url":"https://github.com/avenirer/CodeIgniter-MY_Model","homepage":null,"size":719,"stargazers_count":30,"watchers_count":30,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":3,"forks":22,"open_issues":3,"watchers":30,"default_branch":"version-3.0"}},"_links":{"self":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42"},"html":{"href":"https://github.com/avenirer/CodeIgniter-MY_Model/pull/42"},"issue":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/42"},"comments":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/statuses/87ffd4f69b1390ef03720fe779dd90cce40f0153"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":3,"changed_files":1}}