From cd9bb838f66fbc8e9540320f0943baed4ac9d0b0 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 17 Jan 2023 09:26:47 +0100 Subject: [PATCH] fix: [command:fieldSquasher] Allow persistence of changes --- src/Command/FieldSquasherCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Command/FieldSquasherCommand.php b/src/Command/FieldSquasherCommand.php index 6a5af22..4cf72ac 100644 --- a/src/Command/FieldSquasherCommand.php +++ b/src/Command/FieldSquasherCommand.php @@ -87,11 +87,10 @@ class FieldSquasherCommand extends Command if ($selection == 'Y') { $this->saveDataOnDisk($filename, $candidateResult['candidates']); } - die(1); - + $entities = $candidateResult['candidates']; $selection = $io->askChoice('A sample of the data you about to be saved is provided above. Would you like to proceed?', ['Y', 'N'], 'N'); if ($selection == 'Y') { - // $this->saveData($this->{$table}, $entities); + $this->saveData($this->{$table}, $entities); } }