From 360ad2baeba15dfd6e4374d5fa3834cedc34880e Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 21 Oct 2007 20:52:05 +0000 Subject: AR no long adds/updates/deletes automatically. --- framework/Data/ActiveRecord/TActiveRecordGateway.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data') diff --git a/framework/Data/ActiveRecord/TActiveRecordGateway.php b/framework/Data/ActiveRecord/TActiveRecordGateway.php index 6c5bc07c..5df42f59 100644 --- a/framework/Data/ActiveRecord/TActiveRecordGateway.php +++ b/framework/Data/ActiveRecord/TActiveRecordGateway.php @@ -258,11 +258,11 @@ class TActiveRecordGateway extends TComponent */ public function insert(TActiveRecord $record) { - $this->updateAssociatedRecords($record,true); + //$this->updateAssociatedRecords($record,true); $result = $this->getCommand($record)->insert($this->getInsertValues($record)); if($result) $this->updatePostInsert($record); - $this->updateAssociatedRecords($record); + //$this->updateAssociatedRecords($record); return $result; } @@ -313,10 +313,10 @@ class TActiveRecordGateway extends TComponent */ public function update(TActiveRecord $record) { - $this->updateAssociatedRecords($record,true); + //$this->updateAssociatedRecords($record,true); list($data, $keys) = $this->getUpdateValues($record); $result = $this->getCommand($record)->updateByPk($data, $keys); - $this->updateAssociatedRecords($record); + //$this->updateAssociatedRecords($record); return $result; } -- cgit v1.2.3