Skip to content
This repository
Browse code

BUGFIX: remove unnecessary setComponent call - no longer used (os6175)

  • Loading branch information...
commit 5186a0cea3adfc596e4742a99d643d2aa4ba4c65 1 parent aedadeb
Mateusz U authored April 12, 2012

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  dev/CsvBulkLoader.php
2  dev/CsvBulkLoader.php
@@ -83,7 +83,6 @@ protected function processRecord($record, $columnMap, &$results, $preview = fals
83 83
 					$relationObj = new $relationClass();
84 84
 					$relationObj->write();
85 85
 				}
86  
-				$obj->setComponent($relationName, $relationObj);
87 86
 				$obj->{"{$relationName}ID"} = $relationObj->ID;
88 87
 				$obj->write();
89 88
 				$obj->flushCache(); // avoid relation caching confusion
@@ -92,7 +91,6 @@ protected function processRecord($record, $columnMap, &$results, $preview = fals
92 91
 				// we have a relation column with dot notation
93 92
 				list($relationName,$columnName) = explode('.', $fieldName);
94 93
 				$relationObj = $obj->getComponent($relationName); // always gives us an component (either empty or existing)
95  
-				$obj->setComponent($relationName, $relationObj);
96 94
 				$relationObj->write();
97 95
 				$obj->{"{$relationName}ID"} = $relationObj->ID;
98 96
 				$obj->write();

0 notes on commit 5186a0c

Please sign in to comment.
Something went wrong with that request. Please try again.