summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorwei <>2007-11-09 01:09:06 +0000
committerwei <>2007-11-09 01:09:06 +0000
commita1aaefbd7a4cb2f6e8683215baf076bb2eff9c18 (patch)
tree2af060e2dd716000b39fec9f2fa1fcb9fec70d9c /framework/Data
parent68d7458c3031dc339344657c0ec1120e43a82f56 (diff)
TCache implements ArrayAccess. duplicate copyFrom in TActiveRecord
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php1
-rw-r--r--framework/Data/DataGateway/TTableGateway.php10
2 files changed, 10 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 05cb062f..58c168db 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -520,7 +520,6 @@ abstract class TActiveRecord extends TComponent
return null;
$record=new $type($data);
$record->_recordState=self::STATE_LOADED;
- $record->copyFrom($data);
return $record;
}
diff --git a/framework/Data/DataGateway/TTableGateway.php b/framework/Data/DataGateway/TTableGateway.php
index e389a98e..121f3965 100644
--- a/framework/Data/DataGateway/TTableGateway.php
+++ b/framework/Data/DataGateway/TTableGateway.php
@@ -118,6 +118,16 @@ class TTableGateway extends TComponent
$this->initCommandBuilder($meta->createCommandBuilder($tableName));
}
+ public function getTableInfo()
+ {
+ return $this->getCommand()->getTableInfo();
+ }
+
+ public function getTableName()
+ {
+ return $this->getTableInfo()->getTableName();
+ }
+
/**
* @param TDbCommandBuilder database specific command builder.
*/