mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: remove unnecessary setComponent call - no longer used (os6175)
This commit is contained in:
parent
aedadebae6
commit
5186a0cea3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user