{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7681","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7681/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7681/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7681/events","html_url":"https://github.com/yiisoft/yii2/issues/7681","id":60783440,"number":7681,"title":"AR and attributes","user":{"login":"Rathil","id":2794944,"avatar_url":"https://avatars.githubusercontent.com/u/2794944?v=3","gravatar_id":"","url":"https://api.github.com/users/Rathil","html_url":"https://github.com/Rathil","followers_url":"https://api.github.com/users/Rathil/followers","following_url":"https://api.github.com/users/Rathil/following{/other_user}","gists_url":"https://api.github.com/users/Rathil/gists{/gist_id}","starred_url":"https://api.github.com/users/Rathil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rathil/subscriptions","organizations_url":"https://api.github.com/users/Rathil/orgs","repos_url":"https://api.github.com/users/Rathil/repos","events_url":"https://api.github.com/users/Rathil/events{/privacy}","received_events_url":"https://api.github.com/users/Rathil/received_events","type":"User","site_admin":false},"labels":[{"id":33241821,"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:under%20discussion","name":"status:under discussion","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","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":328,"closed_issues":23,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2016-11-09T09:46:25Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-12T08:00:40Z","updated_at":"2016-11-09T09:46:25Z","closed_at":"2016-11-09T09:46:25Z","body":"God day.\nI had a interesting question about the AR in Yii2.\nWhen working with attributes, like:\n$model = new User();\n$model->id = 55;\nit is not the same as:\n$model->setAttribute('id', 55);\n\nIn code to work with the AR, practically not used methods setAttribute(), setAttributes(), getAttribute(), getAttributes(), but direct access to the variable $_attributes\nAnd loss of control with these attributes for further control of the mechanism.\nThere is no possibility to override a method and gain control get attributes, if I want to extend or something specific to do.\nPossible should rewritten mechanism working with attributes?\n"}}
{"actor":{"display_login":"dynasource"}}