This commit is contained in:
Matthieu
2026-03-31 17:57:59 +02:00
parent 1b1dab65b6
commit 476060cf7d
45 changed files with 8547 additions and 648 deletions

View File

@@ -59,10 +59,10 @@ final class CheckMissingCustomFieldValuesCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$entityScope = (string) $input->getOption('entity');
$limit = max(1, (int) $input->getOption('limit'));
$maxRows = max(1, (int) $input->getOption('max-rows'));
$io = new SymfonyStyle($input, $output);
$entityScope = (string) $input->getOption('entity');
$limit = max(1, (int) $input->getOption('limit'));
$maxRows = max(1, (int) $input->getOption('max-rows'));
$recoverableOnly = (bool) $input->getOption('recoverable-only');
if (!in_array($entityScope, ['all', 'piece', 'composant'], true)) {
@@ -71,7 +71,7 @@ final class CheckMissingCustomFieldValuesCommand extends Command
return Command::FAILURE;
}
$rows = [];
$rows = [];
$counts = [
'piece' => 0,
'composant' => 0,
@@ -202,7 +202,7 @@ final class CheckMissingCustomFieldValuesCommand extends Command
}
$currentValue = $currentValuesByFieldId[$definition->getId()] ?? null;
$issue = null;
$issue = null;
if (!$currentValue instanceof CustomFieldValue) {
$issue = 'missing';