diff options
author | xue <> | 2007-09-30 00:49:07 +0000 |
---|---|---|
committer | xue <> | 2007-09-30 00:49:07 +0000 |
commit | 925eb88b45d87db5c03ca3df3a13d8575f258988 (patch) | |
tree | 34c5583cb8ec6e1479f024e3b330262552ed49f3 /framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php | |
parent | 54e9feab491bcf8d1a95b486b68605cb4441e603 (diff) |
Change of AR due to introduction of column mapping.
Diffstat (limited to 'framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php')
-rw-r--r-- | framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php index 503bbb5e..c233cab4 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php @@ -55,7 +55,7 @@ abstract class TScaffoldBase extends TTemplateControl {
$data = array();
foreach($this->getTableInfo()->getColumns() as $name=>$column)
- $data[] = $record->{$name};
+ $data[] = $record->getColumnValue($name);
return $data;
}
@@ -68,7 +68,7 @@ abstract class TScaffoldBase extends TTemplateControl foreach($this->getTableInfo()->getColumns() as $name=>$column)
{
if($column->getIsPrimaryKey())
- $data[] = $record->{$name};
+ $data[] = $record->getColumnValue($name);
}
return $data;
}
|