From b9b62ead1292f01d4b2c39e0c720938fd39ea55a Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 15 Dec 2019 18:27:31 +0300 Subject: [PATCH] Fixes ACCOUNTS-5Z8. Use correct relation column for OauthSession --- common/models/OauthSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/OauthSession.php b/common/models/OauthSession.php index bca5167..d3f37d2 100644 --- a/common/models/OauthSession.php +++ b/common/models/OauthSession.php @@ -41,7 +41,7 @@ class OauthSession extends ActiveRecord { } public function getAccount(): ActiveQuery { - return $this->hasOne(Account::class, ['id' => 'owner_id']); + return $this->hasOne(Account::class, ['id' => 'account_id']); } public function getScopes(): array {