Permalink
Browse files

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

  • Loading branch information...
1 parent aedadeb commit 5186a0cea3adfc596e4742a99d643d2aa4ba4c65 @mateusz mateusz committed Apr 12, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 dev/CsvBulkLoader.php
@@ -83,7 +83,6 @@ protected function processRecord($record, $columnMap, &$results, $preview = fals
$relationObj = new $relationClass();
$relationObj->write();
}
- $obj->setComponent($relationName, $relationObj);
$obj->{"{$relationName}ID"} = $relationObj->ID;
$obj->write();
$obj->flushCache(); // avoid relation caching confusion
@@ -92,7 +91,6 @@ protected function processRecord($record, $columnMap, &$results, $preview = fals
// we have a relation column with dot notation
list($relationName,$columnName) = explode('.', $fieldName);
$relationObj = $obj->getComponent($relationName); // always gives us an component (either empty or existing)
- $obj->setComponent($relationName, $relationObj);
$relationObj->write();
$obj->{"{$relationName}ID"} = $relationObj->ID;
$obj->write();

0 comments on commit 5186a0c

Please sign in to comment.