Files
Admin Nasledstvo ac168868ee Initial import
2026-05-01 20:52:04 +03:00

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();
}
}