mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-22 23:17:12 +01:00
- allows to have dynamic definition of attributes depended on the instance - there was no real need for it to be static. Places that used it static have been refactored. fixes #1318
11 lines
152 B
PHP
11 lines
152 B
PHP
<?php
|
|
|
|
namespace yiiunit\data\ar\redis;
|
|
|
|
class Item extends ActiveRecord
|
|
{
|
|
public function attributes()
|
|
{
|
|
return ['id', 'name', 'category_id'];
|
|
}
|
|
} |