X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_locking.php;h=c720124554bf9c6f2b67864571eda2df2f50fcf6;hp=a0c9c7b86dfe4a2a7445e8cf0663b54661383ac8;hb=HEAD;hpb=211d0ae8c6231486dc22504502ec71267fa65e58 diff --git a/DataObjects/Core_locking.php b/DataObjects/Core_locking.php index a0c9c7b8..c7201245 100644 --- a/DataObjects/Core_locking.php +++ b/DataObjects/Core_locking.php @@ -2,25 +2,25 @@ /** * 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; }