This commit is contained in:
Alexander Makarov
2014-08-13 22:58:58 +04:00
parent 45e4d47d25
commit 9b1ab7cd36

View File

@ -146,12 +146,15 @@ abstract class ActiveRecord extends BaseActiveRecord
* This method must be overridden by child classes to define available attributes.
* Note: primary key attribute "_id" should be always present in returned array.
* For example:
* ~~~
*
* ```php
* public function attributes()
* {
* return ['_id', 'name', 'address', 'status'];
* }
* ~~~
* ```
*
* @throws \yii\base\InvalidConfigException if not implemented
* @return array list of attribute names.
*/
public function attributes()