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