This commit is contained in:
andrey
2021-09-07 16:32:57 +03:00
parent c8540c41b3
commit dd11a9a88c
4 changed files with 33 additions and 15 deletions

View File

@ -216,4 +216,9 @@ class User extends ActiveRecord implements IdentityInterface
return false;
}
public function getUserCard()
{
return $this->hasOne(UserCard::class, ['id_user' => 'id']);
}
}