Summary Files Commits Branches @commit @diff @stats
path: root / src / models / DBModel.php
diff options
context:
space:
mode:
Commit7d845c9e752c92eabf5005f2bd310cf360991c1a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-01 09:25:09 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-01 09:25:09 +0300
Files48203a8c4708c4a420dc0f0d9df7ef8107213029 /src/models/DBModel.php
devrix-job-board-7d845c9e752c92eabf5005f2bd310cf360991c1a.tar
devrix-job-board-7d845c9e752c92eabf5005f2bd310cf360991c1a.tar.gz
devrix-job-board-7d845c9e752c92eabf5005f2bd310cf360991c1a.zip
Parent588c444417c1aa68eccfe9cb96b6d10ebd4a0a84 (diff)
Added the id property in DBModel
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/models/DBModel.php6
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() {