/** * @return \yii\db\ActiveQuery */ public function getOffers() { return $this->hasMany(Offers::className(), ['goods_id' => 'id']); }