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