diff options
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecord.php | 1 | ||||
-rw-r--r-- | framework/Data/DataGateway/TTableGateway.php | 10 |
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.
*/
|