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