fix cast
This commit is contained in:
parent
4cafd2c93b
commit
9060e31a92
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue