Skip to content

Commit

Permalink
Fix an error with failing a command when a user id is left empty (#2804
Browse files Browse the repository at this point in the history
…) (#2805)
  • Loading branch information
daydiff authored and jmolivas committed Oct 15, 2016
1 parent 5f9aa6a commit 7f7e036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/User/DeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$roles = $input->getOption('roles');

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

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

0 comments on commit 7f7e036

Please sign in to comment.