fix #8131 - chinese translations
[Pman.Core] / DataObjects / Core_locking.php
index 198e5d2..c720124 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * 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 
 {
@@ -10,7 +10,7 @@ class Pman_Core_DataObjects_Core_locking extends DB_DataObject
     /* the code below is auto generated do not remove the above tag */
 
     public $__table = 'core_locking';                    // table name
-    public $int;                             // int(11)  not_null primary_key auto_increment
+    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
@@ -20,7 +20,7 @@ class Pman_Core_DataObjects_Core_locking extends DB_DataObject
     /* 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;
     }