{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12030","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12030/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12030/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12030/events","html_url":"https://github.com/yiisoft/yii2/issues/12030","id":167975980,"number":12030,"title":"Model::offsetExists() throws UnknownPropertyException when property doesn’t exsit","user":{"login":"brandonkelly","id":47792,"avatar_url":"https://avatars.githubusercontent.com/u/47792?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonkelly","html_url":"https://github.com/brandonkelly","followers_url":"https://api.github.com/users/brandonkelly/followers","following_url":"https://api.github.com/users/brandonkelly/following{/other_user}","gists_url":"https://api.github.com/users/brandonkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonkelly/subscriptions","organizations_url":"https://api.github.com/users/brandonkelly/orgs","repos_url":"https://api.github.com/users/brandonkelly/repos","events_url":"https://api.github.com/users/brandonkelly/events{/privacy}","received_events_url":"https://api.github.com/users/brandonkelly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"assignees":[{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/18","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.10","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/18/labels","id":1679982,"number":18,"title":"2.0.10","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":87,"closed_issues":12,"state":"open","created_at":"2016-04-03T04:39:22Z","updated_at":"2016-07-28T09:33:45Z","due_on":"2016-09-10T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-07-27T22:56:48Z","updated_at":"2016-07-28T09:33:45Z","closed_at":"2016-07-28T09:33:45Z","body":"### What steps will reproduce the problem?\r\n\r\n1. Create a class that extends yii\\base\\Model\r\n\r\n        class MyModel extends yii\\base\\Model\r\n        {\r\n        }\r\n\r\n2. Instantiate the model and check if a nonexistant property isset:\r\n\r\n        $obj = new MyModel();\r\n        $isSet = isset($obj->foo);\r\n\r\n### What is the expected result?\r\n\r\nModel::offsetExists() should return `false` (which is called internally when you call isset()).\r\n\r\n### What do you get instead?\r\n\r\nA yii\\base\\UnknownPropertyException is thrown with the message:\r\n\r\n> Getting unknown property: MyModel::foo\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 2.0.9\r\n| PHP version      | \t5.6.13-1+deb.sury.org~trusty+3\r\n| Operating system | Linux homestead 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n"}}
{"actor":{"display_login":"klimov-paul"}}