This commit is contained in:
Sieciech 2021-10-24 00:59:10 +02:00
parent 4cafd2c93b
commit 9060e31a92
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,12 @@ abstract class Model {
}
public static function Instance(object $object): static {
return $object;
$obj = new static;
$params = get_object_vars($object);
foreach ($params as $key => $value) {
$obj->{$key} = $value;
}
return $obj;
}
protected static function QueryModel() {