diff options
Added the id property in DBModel
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | src/models/DBModel.php | 6 |
diff --git a/src/models/DBModel.php b/src/models/DBModel.php index 6980446..859ea97 100644 --- a/src/models/DBModel.php +++ b/src/models/DBModel.php @@ -2,6 +2,12 @@ include_once("DB.php"); abstract class DBModel { + /** + * Used ONLY for gotten values form the database. Mustn't be assigned to, since it's AUTO_INCREMENT. + * The id column is set by default in the DB class. + */ + public int $id; + protected static DB $DB; public static function __constructStatic() { |
