Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity delete fails with chunks option #5642

Merged
merged 7 commits into from
Jun 8, 2023
Merged

Entity delete fails with chunks option #5642

merged 7 commits into from
Jun 8, 2023

Conversation

Chi-teck
Copy link
Collaborator

@Chi-teck Chi-teck commented Jun 8, 2023

Example

$ drush entity:delete node --chunks=10
 0/1 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0% [error]  TypeError: array_chunk(): Argument #2 ($length) must be of type int, string given in array_chunk() (line 66 of /var/www/d10/web/vendor/drush/drush/src/Commands/core/EntityCommands.php) #0 /var/www/d10/web/vendor/drush/drush/src/Commands/core/EntityCommands.php(66): array_chunk()
#1 [internal function]: Drush\Commands\core\EntityCommands->delete()
#2 /var/www/d10/web/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#3 /var/www/d10/web/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#4 /var/www/d10/web/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#5 /var/www/d10/web/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#6 /var/www/d10/web/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#7 /var/www/d10/web/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run()
#8 /var/www/d10/web/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/d10/web/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun()
#10 /var/www/d10/web/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#11 /var/www/d10/web/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#12 /var/www/d10/web/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#13 /var/www/d10/web/vendor/drush/drush/drush(4): require('...')
#14 /var/www/d10/web/vendor/bin/drush(120): include('...')
#15 {main}. 

@weitzman weitzman merged commit 4ff6d5e into drush-ops:12.x Jun 8, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants