Skip to content

Commit

Permalink
Merge pull request #12 from ChrisMoutsos/master
Browse files Browse the repository at this point in the history
EZP-30484: Skip attributes with zero instances in the ezmatrix migrat…
  • Loading branch information
Łukasz Serwatka authored Apr 19, 2019
2 parents 107e358 + dc2b1c2 commit dc60942
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bundle/Command/MigrateLegacyMatrixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ public function execute(InputInterface $input, OutputInterface $output)
(int)$contentClassAttribute['id']
);

if ($contentAttributesCount === 0) {
$io->comment(sprintf('Zero instances of %s:%s attribute to migrate.', $contentClassAttribute['contenttype_identifier'], $contentClassAttribute['identifier']));
continue;
}

$columns = json_decode($columnsJson);

$progressBar = $this->getProgressBar($contentAttributesCount, $output);
Expand Down

0 comments on commit dc60942

Please sign in to comment.