MAPG-69 add new field to User

This commit is contained in:
bence committed 2020-06-21 15:12:44 +02:00
1 parent 99c72d99be
commit 7ba11f34cc
3 files changed
+32 -4

No files matched your search

+8
View File
@@ -25,4 +25,12 @@ class UserRepository
return $this->pdm->selectFromDb($select, User::class);
}
public function getByGoogleSub(string $sub): ?User
{
$select = new Select(\Container::$dbConnection);
$select->where('google_sub', '=', $sub);
return $this->pdm->selectFromDb($select, User::class);
}
}