{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8659","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8659/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8659/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8659/events","html_url":"https://github.com/yiisoft/yii2/issues/8659","id":85169506,"number":8659,"title":"ActiveRecord with()  work with select() problem","user":{"login":"xjflyttp","id":128428,"avatar_url":"https://avatars.githubusercontent.com/u/128428?v=3","gravatar_id":"","url":"https://api.github.com/users/xjflyttp","html_url":"https://github.com/xjflyttp","followers_url":"https://api.github.com/users/xjflyttp/followers","following_url":"https://api.github.com/users/xjflyttp/following{/other_user}","gists_url":"https://api.github.com/users/xjflyttp/gists{/gist_id}","starred_url":"https://api.github.com/users/xjflyttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjflyttp/subscriptions","organizations_url":"https://api.github.com/users/xjflyttp/orgs","repos_url":"https://api.github.com/users/xjflyttp/repos","events_url":"https://api.github.com/users/xjflyttp/events{/privacy}","received_events_url":"https://api.github.com/users/xjflyttp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T16:22:37Z","updated_at":"2015-06-05T00:08:07Z","closed_at":null,"body":"```php\r\n$query = Article::find();\r\n$query->with(\r\n    'channel' => function($query){\r\n        $query->select(['name']);\r\n    }\r\n);\r\n```\r\n```sql\r\nSELECT * FROM `cms_channel` WHERE `id` IN (58, 34, 6, 56)\r\n```\r\n\r\nI want result is  \r\n```sql\r\nSELECT `name` FROM `cms_channel` WHERE `id` IN (58, 34, 6, 56)\r\n```\r\n\r\nthanks...\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/109100254","html_url":"https://github.com/yiisoft/yii2/issues/8659#issuecomment-109100254","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8659","id":109100254,"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":"2015-06-05T00:08:07Z","updated_at":"2015-06-05T00:08:07Z","body":"tried too. no issue."}}