mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 22:00:06 +05:30
Fixes ACCOUNTS-5Z8. Use correct relation column for OauthSession
This commit is contained in:
parent
3b00e36816
commit
b9b62ead12
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user