fix #8131 - chinese translations
[Pman.Core] / DataObjects / Core_locking.php
index da3b7bd..c720124 100644 (file)
@@ -2,25 +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;
     }
 }