This commit is contained in:
Michał Sieciechowicz 2021-02-26 22:04:06 +01:00
parent 6022747aed
commit f7e35dee68
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class BaseModel {
}
public static function Get(int $id) {
return __CLASS__;
return self::class;
$stmt = $pdo->prepare('SELECT id, name FROM users WHERE id=?');
$stmt->execute([$id]);
return $stmt->fetchObject(__CLASS__);