summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.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/TActiveRecordRelationContext.php
parent54e9feab491bcf8d1a95b486b68605cb4441e603 (diff)
Change of AR due to introduction of column mapping.
Diffstat (limited to 'framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php')
-rw-r--r--framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php
index c9b47d12..189d2c5e 100644
--- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php
+++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php
@@ -74,7 +74,7 @@ class TActiveRecordRelationContext
public function getPropertyValue()
{
$obj = $this->getSourceRecord();
- return $obj->{$this->getProperty()};
+ return $obj->getColumnValue($this->getProperty());
}
/**
@@ -185,7 +185,7 @@ class TActiveRecordRelationContext
if(($updateBelongsTo && $belongsTo) || (!$updateBelongsTo && !$belongsTo))
{
$obj = $this->getSourceRecord();
- if(!$this->isEmptyFkObject($obj->{$property}))
+ if(!$this->isEmptyFkObject($obj->getColumnValue($property)))
{
$context = new self($this->getSourceRecord(),$property);
$success = $context->getRelationHandler()->updateAssociatedRecords() && $success;