Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmit-tanel-paaro committed Nov 15, 2023
1 parent 57a7159 commit 2b27e83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DataDefinitionsBundle/Importer/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,7 @@ private function setObjectValue(
throw new InvalidArgumentException('Type has to be used with ObjectType Setter!');
}

// Do not override ID value for existing object.
$shouldSetField = 'o_id' !== $map->getFromColumn() || !$object->getId();
$shouldSetField = true;

if ($runner instanceof SetterRunnerInterface) {
if ($runner instanceof LoggerAwareInterface) {
Expand Down

0 comments on commit 2b27e83

Please sign in to comment.