public function init() { $this->name = "Управление значениями свойств раздела"; $this->modelShowAttribute = "value"; $this->modelClassName = CmsTreeTypePropertyEnum::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getEnums() { return $this->hasMany(CmsTreeTypePropertyEnum::className(), ['property_id' => 'id']); }