We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run user:delete command trying to delete users by roles it fails with fatal error:
PHP Fatal error: Call to a member function getStorage() on null in console/src/Command/User/DeleteCommand.php on line 174
user:delete
user id
user role
Replace mistyped
$userStorage = $this->entityManager->getStorage('user');
with
$userStorage = $this->entityTypeManager->getStorage('user');
The text was updated successfully, but these errors were encountered:
Fix an error with failing a command when a user id is left empty (hec…
7006306
…hoendrupal#2804)
Fix an error with failing a command when a user id is left empty (#2804…
7f7e036
…) (#2805)
PR #2805 merged
Sorry, something went wrong.
No branches or pull requests
Problem
When I run user:delete command trying to delete users by roles it fails with fatal error:
PHP Fatal error: Call to a member function getStorage() on null in console/src/Command/User/DeleteCommand.php on line 174
How to reproduce
user:delete
user id
emptyuser role
Solution
Replace mistyped
with
The text was updated successfully, but these errors were encountered: