From 9edf5b81b3a0ecbce4e1df02f5a697cdb2fa4d7f Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 30 Sep 2015 22:30:14 +1000 Subject: [PATCH] More WIP --- classes/ORM/DB2.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 classes/ORM/DB2.php diff --git a/classes/ORM/DB2.php b/classes/ORM/DB2.php new file mode 100644 index 0000000..68560b0 --- /dev/null +++ b/classes/ORM/DB2.php @@ -0,0 +1,37 @@ +_object_name = strtolower(substr(get_class($this), 6)); + + // Table name is the same as the object name in uppercase + $this->_table_name = $this->_object_name; + + if ($this->_table_names_plural === TRUE) + { + // Make the table name plural + $this->_table_name = Inflector::plural($this->_object_name); + } + + $this->_table_name = strtoupper($this->_table_name); + + parent::_initialize(); + } +} +?>