tuyakhov/yii2-json-api

Improve to ResourceTrait:fields

githubjeka opened this issue · 1 comments

Active Record uses fields() by default and it expected when work by API.
Your implement return always [] attributes.

But removal of this method would create another issue. Because ResourceTrait may be used in others non ActiveRecord classes. Probably it requires more efficient approach.

#3

Has been improved in 7dcb7ef