public function init() { $this->name = "Настройки разделов"; $this->modelShowAttribute = "name"; $this->modelClassName = CmsTreeType::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getDefaultChildrenTreeType() { return $this->hasOne(CmsTreeType::className(), ['id' => 'default_children_tree_type']); }
/** * @return \yii\db\ActiveQuery */ public function getTreeType() { return $this->hasOne(CmsTreeType::className(), ['id' => 'tree_type_id']); }