{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8224","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8224/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8224/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8224/events","html_url":"https://github.com/yiisoft/yii2/issues/8224","id":71847432,"number":8224,"title":"REST Serializer and custom fields with ActiveDataProvider","user":{"login":"philippfrenzel","id":2319890,"avatar_url":"https://avatars.githubusercontent.com/u/2319890?v=3","gravatar_id":"","url":"https://api.github.com/users/philippfrenzel","html_url":"https://github.com/philippfrenzel","followers_url":"https://api.github.com/users/philippfrenzel/followers","following_url":"https://api.github.com/users/philippfrenzel/following{/other_user}","gists_url":"https://api.github.com/users/philippfrenzel/gists{/gist_id}","starred_url":"https://api.github.com/users/philippfrenzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippfrenzel/subscriptions","organizations_url":"https://api.github.com/users/philippfrenzel/orgs","repos_url":"https://api.github.com/users/philippfrenzel/repos","events_url":"https://api.github.com/users/philippfrenzel/events{/privacy}","received_events_url":"https://api.github.com/users/philippfrenzel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-29T11:16:18Z","updated_at":"2015-04-29T18:49:57Z","closed_at":"2015-04-29T18:40:08Z","body":"Hi, \r\n\r\nI'm trying to return a ActiveDataProvicer on a REST-Call which has \"calculated\" fields that aren't existing in the database. \r\n\r\nI extended my Model with a getField() method to return the value of the calculated field. What ever I tried, it's not returning the \"field\" within the ActiveDataProvider so it's missed inside my result:(\r\n\r\nHow can I fix this?\r\n\r\nThanks Philipp"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/97538158","html_url":"https://github.com/yiisoft/yii2/issues/8224#issuecomment-97538158","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8224","id":97538158,"user":{"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},"created_at":"2015-04-29T18:49:57Z","updated_at":"2015-04-29T18:49:57Z","body":"> By default, yii\\base\\Model::fields() returns all model attributes as fields, while yii\\db\\ActiveRecord::fields() only returns the attributes which have been populated from DB.\r\n\r\ncan it be more clear that this is a method of the model? :)"}}