Fixes ACCOUNTS-5Z8. Use correct relation column for OauthSession

This commit is contained in:
ErickSkrauch 2019-12-15 18:27:31 +03:00
parent 3b00e36816
commit b9b62ead12

View File

@ -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 {