Initial import
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user