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/Relations/TActiveRecordHasManyAssociation.php | |
parent | 54e9feab491bcf8d1a95b486b68605cb4441e603 (diff) |
Change of AR due to introduction of column mapping.
Diffstat (limited to 'framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php')
-rw-r--r-- | framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php index 7e942e67..0e176607 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php @@ -215,7 +215,7 @@ class TActiveRecordHasManyAssociation extends TActiveRecordRelation {
$i=0;
foreach($foreignKeys as $ref=>$fk)
- $obj->{$ref} = $row[$this->_association_columns[$i++]];
+ $obj->setColumnValue($ref, $row[$this->_association_columns[$i++]]);
}
return $obj;
}
@@ -372,7 +372,7 @@ class TActiveRecordHasManyAssociation extends TActiveRecordRelation {
$data=array();
foreach($foreignKeys as $name=>$fKey)
- $data[$name] = $fkObject->{$fKey};
+ $data[$name] = $fkObject->getColumnValue($fKey);
return $data;
}
}
|