This commit is contained in:
parent
6022747aed
commit
f7e35dee68
|
@ -15,7 +15,7 @@ class BaseModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function Get(int $id) {
|
public static function Get(int $id) {
|
||||||
return __CLASS__;
|
return self::class;
|
||||||
$stmt = $pdo->prepare('SELECT id, name FROM users WHERE id=?');
|
$stmt = $pdo->prepare('SELECT id, name FROM users WHERE id=?');
|
||||||
$stmt->execute([$id]);
|
$stmt->execute([$id]);
|
||||||
return $stmt->fetchObject(__CLASS__);
|
return $stmt->fetchObject(__CLASS__);
|
||||||
|
|
Loading…
Reference in New Issue