Skip to content

Commit 7f7e036

Browse files
daydiffjmolivas
authored andcommitted
Fix an error with failing a command when a user id is left empty (#2804) (#2805)
1 parent 5f9aa6a commit 7f7e036

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/User/DeleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
171171
$roles = $input->getOption('roles');
172172

173173
if ($roles) {
174-
$userStorage = $this->entityManager->getStorage('user');
174+
$userStorage = $this->entityTypeManager->getStorage('user');
175175

176176
$query = $this->entityQuery->get('user');
177177
$query->condition('roles', is_array($roles)?$roles:[$roles], 'IN');

0 commit comments

Comments
 (0)