X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_locking.php;h=c720124554bf9c6f2b67864571eda2df2f50fcf6;hp=a740ee695c59d3d4cab9adab19cdf30765dff030;hb=HEAD;hpb=1264a34cd5b78c6f0b1995f7bd91c05cba998732 diff --git a/DataObjects/Core_locking.php b/DataObjects/Core_locking.php index a740ee69..c7201245 100644 --- a/DataObjects/Core_locking.php +++ b/DataObjects/Core_locking.php @@ -2,26 +2,26 @@ /** * Table Definition for core company */ -require_once 'DB/DataObject.php'; +class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php'; class Pman_Core_DataObjects_Core_locking extends DB_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ - public $__table = 'core_locking'; // table name - public $id; // int(11) not_null primary_key auto_increment - public $person_id; // string(64) not_null - public $on_id; // string(64) not_null - public $on_table; // string(64) not_null - public $created; // string(64) not_null + public $__table = 'core_locking'; // table name + public $id; // int(11) not_null primary_key auto_increment + public $on_table; // string(64) not_null multiple_key + public $on_id; // int(11) not_null + public $person_id; // int(11) not_null + public $created; // datetime(19) not_null binary /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE function person() { - $p = DB_DataObjecT::factory('Person'); + $p = DB_DataObject::factory('core_person'); $p->get($this->person_id); - + return $p; } }