Skip to content

Commit fb75517

Browse files
committed
[With or With IDs][Review] some resolved conversations
1 parent d210ddd commit fb75517

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/Command/Base/AbstractImportBaseCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ protected function configure(): void
3737
'The format of the input file: yaml, json',
3838
''
3939
)
40+
->addOption(
41+
'overwrite',
42+
null,
43+
InputOption::VALUE_NONE,
44+
'Overwrite or update existing elements in case of key-path-id matching [default: false]',
45+
false
46+
)
4047
->addOption(
4148
'dry-run',
4249
null,

src/Serializer/Normalizer/PrioritizedAttributesNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PrioritizedAttributesNormalizer implements NormalizerInterface
1818
public function __construct(ObjectNormalizer $normalizer, array $priorities = [])
1919
{
2020
$this->normalizer = $normalizer;
21-
$this->priorities = $priorities; // z.B.: ['type', 'id', 'parentId', 'path', ...]
21+
$this->priorities = $priorities; // e.g.: ['type', 'id', 'parentId', 'path', ...]
2222
}
2323

2424
/**
@@ -42,7 +42,7 @@ public function normalize($object, ?string $format = null, array $context = [])
4242
}
4343
}
4444

45-
// Hänge alle restlichen Properties hinten dran
45+
// Append all remaining properties at the end
4646
return array_merge($sorted, $data);
4747
}
4848

0 commit comments

Comments
 (0)