{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/11487","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/11487/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/11487/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/11487/events","html_url":"https://github.com/yiisoft/yii2/pull/11487","id":152717956,"number":11487,"title":"[Enh] getClass() method","user":{"login":"Faryshta","id":2029247,"avatar_url":"https://avatars.githubusercontent.com/u/2029247?v=3","gravatar_id":"","url":"https://api.github.com/users/Faryshta","html_url":"https://github.com/Faryshta","followers_url":"https://api.github.com/users/Faryshta/followers","following_url":"https://api.github.com/users/Faryshta/following{/other_user}","gists_url":"https://api.github.com/users/Faryshta/gists{/gist_id}","starred_url":"https://api.github.com/users/Faryshta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faryshta/subscriptions","organizations_url":"https://api.github.com/users/Faryshta/orgs","repos_url":"https://api.github.com/users/Faryshta/repos","events_url":"https://api.github.com/users/Faryshta/events{/privacy}","received_events_url":"https://api.github.com/users/Faryshta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-03T07:48:29Z","updated_at":"2016-05-03T15:48:48Z","closed_at":"2016-05-03T08:41:24Z","pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/11487","html_url":"https://github.com/yiisoft/yii2/pull/11487","diff_url":"https://github.com/yiisoft/yii2/pull/11487.diff","patch_url":"https://github.com/yiisoft/yii2/pull/11487.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Is bugfix?    | no\r\n| New feature?  | yes\r\n| Breaks BC?    | no\r\n| Tests pass?   | yes (new test added)\r\n\r\ninstead of `get_class($model)` we can obtain the class of a model by `$model->class` if this is approved i will make another pr to modify all the `get_class($object)` calls\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/216572831","html_url":"https://github.com/yiisoft/yii2/pull/11487#issuecomment-216572831","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/11487","id":216572831,"user":{"login":"Faryshta","id":2029247,"avatar_url":"https://avatars.githubusercontent.com/u/2029247?v=3","gravatar_id":"","url":"https://api.github.com/users/Faryshta","html_url":"https://github.com/Faryshta","followers_url":"https://api.github.com/users/Faryshta/followers","following_url":"https://api.github.com/users/Faryshta/following{/other_user}","gists_url":"https://api.github.com/users/Faryshta/gists{/gist_id}","starred_url":"https://api.github.com/users/Faryshta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faryshta/subscriptions","organizations_url":"https://api.github.com/users/Faryshta/orgs","repos_url":"https://api.github.com/users/Faryshta/repos","events_url":"https://api.github.com/users/Faryshta/events{/privacy}","received_events_url":"https://api.github.com/users/Faryshta/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T15:48:48Z","updated_at":"2016-05-03T15:48:48Z","body":"there is a commit here https://github.com/Faryshta/yii2/commits/getClass that is not being parsed on this PR. Any idea why?"}}