From fe61d147134bef6ffe1301f643902f53f4c4d291 Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 28 Mar 2022 21:55:29 -0400 Subject: [PATCH] Fix error on save. --- src/Libs/ModelMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libs/ModelMySQL.php b/src/Libs/ModelMySQL.php index 87c683e..3d5fa9d 100644 --- a/src/Libs/ModelMySQL.php +++ b/src/Libs/ModelMySQL.php @@ -17,7 +17,7 @@ use mysqli; class ModelMySQL { - public int $id; + public ?int $id = null; protected array $toNull = []; static protected string $primaryKey = 'id'; static protected array $ignoreSave = ['id'];