/** * @return \yii\db\ActiveQuery */ public function getCategory() { return $this->hasOne(KefuSelfserviceCat::className(), ['id' => 'category_id']); }
/** * @return \yii\db\ActiveQuery */ public function getKefuSelfserviceCats() { return $this->hasMany(KefuSelfserviceCat::className(), ['parent_id' => 'id']); }