summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2007-10-21 20:52:05 +0000
committerxue <>2007-10-21 20:52:05 +0000
commit360ad2baeba15dfd6e4374d5fa3834cedc34880e (patch)
tree17c6ef692a148e1ccecc49dabf115b6e36bcc480 /framework/Data
parent8bebf49fbfb92f039f56cb22b759d8e84ef19799 (diff)
AR no long adds/updates/deletes automatically.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordGateway.php8
1 files changed, 4 insertions, 4 deletions
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;
}