23 lines
495 B
PHP
23 lines
495 B
PHP
<?php
|
|
|
|
|
|
namespace app\models;
|
|
|
|
/**
|
|
* Class CommonFields
|
|
* @package app\models
|
|
* @property int $id
|
|
* @property int $parent_id
|
|
* @property int $order_index
|
|
* @property string $name
|
|
* @property string $ts_en_name
|
|
* @property CommonFields[] $options
|
|
* @property boolean $multiple_filters
|
|
*/
|
|
class CommonFields extends _Base
|
|
{
|
|
public function getOptions() {
|
|
return $this->hasMany(CommonFields::class, ['parent_id' => 'id'])->orderBy(['order_index' => SORT_ASC])->all();
|
|
}
|
|
}
|