From 68d7458c3031dc339344657c0ec1120e43a82f56 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 8 Nov 2007 19:19:35 +0000 Subject: further AR refactoring. --- .../Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Data/ActiveRecord/Relations') diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php index bcda962c..67a33547 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php @@ -212,7 +212,7 @@ class TActiveRecordHasManyAssociation extends TActiveRecordRelation */ protected function createFkObject($type,$row,$foreignKeys) { - $obj = TActiveRecord::createRecordInstance($type, $row, TActiveRecord::STATE_LOADED); + $obj = TActiveRecord::createRecord($type, $row); if(count($this->_association_columns) > 0) { $i=0; -- cgit v1.2.3