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

This commit is contained in:
Mateusz Uzdowski 2012-04-12 16:56:22 +12:00
parent aedadebae6
commit 5186a0cea3

View File

@ -83,7 +83,6 @@ class CsvBulkLoader extends BulkLoader {
$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 @@ class CsvBulkLoader extends BulkLoader {
// 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();