diff --git a/src/Command/DoctrineDecryptDatabaseCommand.php b/src/Command/DoctrineDecryptDatabaseCommand.php index 52fd45dd..f0e46690 100644 --- a/src/Command/DoctrineDecryptDatabaseCommand.php +++ b/src/Command/DoctrineDecryptDatabaseCommand.php @@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $output->writeln(sprintf('Processing %s', $metaData->name)); $progressBar = new ProgressBar($output, $totalCount); foreach ($iterator as $row) { - $entity = $row[0]; + $entity = is_array($row) ? $row[0] : $row; // Create reflectionClass for each entity $entityReflectionClass = new \ReflectionClass($entity);