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