summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php
diff options
context:
space:
mode:
authorxue <>2007-09-30 00:49:07 +0000
committerxue <>2007-09-30 00:49:07 +0000
commit925eb88b45d87db5c03ca3df3a13d8575f258988 (patch)
tree34c5583cb8ec6e1479f024e3b330262552ed49f3 /framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php
parent54e9feab491bcf8d1a95b486b68605cb4441e603 (diff)
Change of AR due to introduction of column mapping.
Diffstat (limited to 'framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php')
-rw-r--r--framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php
index fea78e36..cbba3ebd 100644
--- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php
+++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php
@@ -105,7 +105,7 @@ class TActiveRecordHasMany extends TActiveRecordRelation
if($registry->shouldPersistObject($fkObjects[$i]))
{
foreach($fkeys as $fKey => $srcKey)
- $fkObjects[$i]->{$fKey} = $source->{$srcKey};
+ $fkObjects[$i]->setColumnValue($fKey, $source->getColumnValue($srcKey));
$success = $fkObjects[$i]->save() && $success;
}
}