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