/** * @return \yii\db\ActiveQuery */ public function getCat() { return $this->hasOne(Cat::className(), ['id' => 'cat_id']); }