From 925eb88b45d87db5c03ca3df3a13d8575f258988 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 30 Sep 2007 00:49:07 +0000 Subject: Change of AR due to introduction of column mapping. --- .../Data/ActiveRecord/Relations/TActiveRecordRelationContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php') 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; -- cgit v1.2.3