{"action":"closed","number":383,"pull_request":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383","id":26034777,"html_url":"https://github.com/jenssegers/laravel-mongodb/pull/383","diff_url":"https://github.com/jenssegers/laravel-mongodb/pull/383.diff","patch_url":"https://github.com/jenssegers/laravel-mongodb/pull/383.patch","issue_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/383","number":383,"state":"closed","locked":false,"title":"Prevent getAttribute() from calling static methods","user":{"login":"NSmithUK","id":480908,"avatar_url":"https://avatars.githubusercontent.com/u/480908?v=3","gravatar_id":"","url":"https://api.github.com/users/NSmithUK","html_url":"https://github.com/NSmithUK","followers_url":"https://api.github.com/users/NSmithUK/followers","following_url":"https://api.github.com/users/NSmithUK/following{/other_user}","gists_url":"https://api.github.com/users/NSmithUK/gists{/gist_id}","starred_url":"https://api.github.com/users/NSmithUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSmithUK/subscriptions","organizations_url":"https://api.github.com/users/NSmithUK/orgs","repos_url":"https://api.github.com/users/NSmithUK/repos","events_url":"https://api.github.com/users/NSmithUK/events{/privacy}","received_events_url":"https://api.github.com/users/NSmithUK/received_events","type":"User","site_admin":false},"body":"I hit an issue after upgrading to v2 that I could no longer access attributes that had the same name as static method declared on Jenssegers\\Mongodb\\Model (or its parents).\r\n\r\nFor example I had attributes called 'updated' and 'deleted'. When trying to access $model->updated, PHP threw a fatal error because `$relations = $this->$camelKey();` tried calling `\\Illuminate\\Database\\Eloquent\\Model::updated($callback)`.\r\n\r\nThis pull request helps mitigate the issue by ensuring only non-static methods are assumed to represent a embedded model.","created_at":"2014-12-14T14:29:33Z","updated_at":"2015-05-25T09:33:19Z","closed_at":"2015-05-25T09:33:19Z","merged_at":null,"merge_commit_sha":"51254a74624c52a8a29d4d78bd5e13d847f6381c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383/commits","review_comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383/comments","review_comment_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/383/comments","statuses_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/cf28733b8bfd518d58c515be87669d3d46610ac1","head":{"label":"NSmithUK:master","ref":"master","sha":"cf28733b8bfd518d58c515be87669d3d46610ac1","user":{"login":"NSmithUK","id":480908,"avatar_url":"https://avatars.githubusercontent.com/u/480908?v=3","gravatar_id":"","url":"https://api.github.com/users/NSmithUK","html_url":"https://github.com/NSmithUK","followers_url":"https://api.github.com/users/NSmithUK/followers","following_url":"https://api.github.com/users/NSmithUK/following{/other_user}","gists_url":"https://api.github.com/users/NSmithUK/gists{/gist_id}","starred_url":"https://api.github.com/users/NSmithUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSmithUK/subscriptions","organizations_url":"https://api.github.com/users/NSmithUK/orgs","repos_url":"https://api.github.com/users/NSmithUK/repos","events_url":"https://api.github.com/users/NSmithUK/events{/privacy}","received_events_url":"https://api.github.com/users/NSmithUK/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"jenssegers:master","ref":"master","sha":"3bddd4b13be72d30f5af09ae41eec0c38028ca63","user":{"login":"jenssegers","id":194377,"avatar_url":"https://avatars.githubusercontent.com/u/194377?v=3","gravatar_id":"","url":"https://api.github.com/users/jenssegers","html_url":"https://github.com/jenssegers","followers_url":"https://api.github.com/users/jenssegers/followers","following_url":"https://api.github.com/users/jenssegers/following{/other_user}","gists_url":"https://api.github.com/users/jenssegers/gists{/gist_id}","starred_url":"https://api.github.com/users/jenssegers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenssegers/subscriptions","organizations_url":"https://api.github.com/users/jenssegers/orgs","repos_url":"https://api.github.com/users/jenssegers/repos","events_url":"https://api.github.com/users/jenssegers/events{/privacy}","received_events_url":"https://api.github.com/users/jenssegers/received_events","type":"User","site_admin":false},"repo":{"id":9131292,"name":"laravel-mongodb","full_name":"jenssegers/laravel-mongodb","owner":{"login":"jenssegers","id":194377,"avatar_url":"https://avatars.githubusercontent.com/u/194377?v=3","gravatar_id":"","url":"https://api.github.com/users/jenssegers","html_url":"https://github.com/jenssegers","followers_url":"https://api.github.com/users/jenssegers/followers","following_url":"https://api.github.com/users/jenssegers/following{/other_user}","gists_url":"https://api.github.com/users/jenssegers/gists{/gist_id}","starred_url":"https://api.github.com/users/jenssegers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenssegers/subscriptions","organizations_url":"https://api.github.com/users/jenssegers/orgs","repos_url":"https://api.github.com/users/jenssegers/repos","events_url":"https://api.github.com/users/jenssegers/events{/privacy}","received_events_url":"https://api.github.com/users/jenssegers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jenssegers/laravel-mongodb","description":"A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)","fork":false,"url":"https://api.github.com/repos/jenssegers/laravel-mongodb","forks_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/forks","keys_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/teams","hooks_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/hooks","issue_events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/events","assignees_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/tags","blobs_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/languages","stargazers_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/stargazers","contributors_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/contributors","subscribers_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/subscribers","subscription_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/subscription","commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/merges","archive_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/downloads","issues_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/releases{/id}","created_at":"2013-03-31T14:31:04Z","updated_at":"2015-05-25T05:07:00Z","pushed_at":"2015-05-25T09:32:51Z","git_url":"git://github.com/jenssegers/laravel-mongodb.git","ssh_url":"git@github.com:jenssegers/laravel-mongodb.git","clone_url":"https://github.com/jenssegers/laravel-mongodb.git","svn_url":"https://github.com/jenssegers/laravel-mongodb","homepage":"http://jenssegers.be","size":3389,"stargazers_count":1038,"watchers_count":1038,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":244,"mirror_url":null,"open_issues_count":65,"forks":244,"open_issues":65,"watchers":1038,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383"},"html":{"href":"https://github.com/jenssegers/laravel-mongodb/pull/383"},"issue":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/383"},"comments":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/383/comments"},"review_comments":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383/comments"},"review_comment":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/pulls/383/commits"},"statuses":{"href":"https://api.github.com/repos/jenssegers/laravel-mongodb/statuses/cf28733b8bfd518d58c515be87669d3d46610ac1"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":21,"deletions":11,"changed_files":1}}