Files
yii2/tests/unit/data/ar/elasticsearch/Item.php
Carsten Brandt 83527e85ca made Model::attributes() non static again
- 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
2013-11-28 01:01:48 +01:00

19 lines
265 B
PHP

<?php
namespace yiiunit\data\ar\elasticsearch;
/**
* Class Item
*
* @property integer $id
* @property string $name
* @property integer $category_id
*/
class Item extends ActiveRecord
{
public function attributes()
{
return ['name', 'category_id'];
}
}