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