X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_office.php;h=5a7ccfdf40aa257a3814384857e9f0bed85b3d6c;hp=a5229b522f5d9ac3901ce9878c848896656d5340;hb=HEAD;hpb=3478ebc057921a972d06815177fedb99c4b0645b;ds=sidebyside diff --git a/DataObjects/Core_office.php b/DataObjects/Core_office.php index a5229b52..5a7ccfdf 100644 --- a/DataObjects/Core_office.php +++ b/DataObjects/Core_office.php @@ -2,14 +2,14 @@ /** * Table Definition for Office */ -require_once 'DB/DataObject.php'; +class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php'; class Pman_Core_DataObjects_Core_office extends DB_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ - public $__table = 'Office'; // table name + public $__table = 'core_office'; // table name public $id; // int(11) not_null primary_key auto_increment public $company_id; // int(11) not_null public $name; // string(64) not_null @@ -58,7 +58,7 @@ class Pman_Core_DataObjects_Core_office extends DB_DataObject return true; // standard error message. } - $p = DB_DAtaObject::Factory('Person'); + $p = DB_DAtaObject::Factory('core_person'); if (!is_a($dependants_array[0], get_class($p))) { $roo->jerr("dep is not a person..");