Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5186a0cea3adfc596e4742a99d643d2aa4ba4c65 1 parent aedadeb
@mateusz mateusz authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  dev/CsvBulkLoader.php
View
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();
Please sign in to comment.
Something went wrong with that request. Please try again.