- Issue created by @SocialNicheGuru
- 🇺🇸United States SocialNicheGuru
Error: [error] Error: Call to undefined method
Drupal\trash\TrashEntityTypeManager::getFieldDefi
nitions() in eval() (line 1 of
/var/www/html/vendor/drush/drush/src/Commands/cor
e/PhpCommands.php(32) : eval()'d code)
#0
/var/www/html/vendor/drush/drush/src/Commands/cor
e/PhpCommands.php(32): eval()
#1 [internal function]:
Drush\Commands\core\PhpCommands->evaluate()
#2 /var/www/html/vendor/consolidation/annotated-c
ommand/src/CommandProcessor.php(276):
call_user_func_array()
#3 /var/www/html/vendor/consolidation/annotated-c
ommand/src/CommandProcessor.php(212):
Consolidation\AnnotatedCommand\CommandProcessor->
runCommandCallback()
#4 /var/www/html/vendor/consolidation/annotated-c
ommand/src/CommandProcessor.php(175):
Consolidation\AnnotatedCommand\CommandProcessor->
validateRunAndAlter()
#5 /var/www/html/vendor/consolidation/annotated-c
ommand/src/AnnotatedCommand.php(387): Consolidati
on\AnnotatedCommand\CommandProcessor->process()
#6 /var/www/html/vendor/symfony/console/Command/C
ommand.php(326): Consolidation\AnnotatedCommand\A
nnotatedCommand->execute()
#7 /var/www/html/vendor/symfony/console/Applicati
on.php(1096):
Symfony\Component\Console\Command\Command->run()
#8 /var/www/html/vendor/symfony/console/Applicati
on.php(324): Symfony\Component\Console\Applicatio
n->doRunCommand()
#9 /var/www/html/vendor/symfony/console/Applicati
on.php(175):
Symfony\Component\Console\Application->doRun() I was not able to reproduce the error. I tested on a DrupalPod environment running D10.5.1 with the 3.x-dev version of the module and version 5.4.0 of devel_generate.
- 🇷🇴Romania amateescu
I also can't reproduce this. What entity type were you trying to generate?
- 🇺🇸United States SocialNicheGuru
I am changing this to a support request. This was an issue, now it is not. I am wondering if there was an interaction with another module.
- 🇷🇴Romania amateescu
An interaction with another module is my guess as well. I think what would need to happen for this error to appear is for an entity class to use the entity type manager instead of the entity field manager in
FieldableEntityInterface::getFieldDefinitions()
, in which case that entity class needs to be updated.Closing for now but feel free to reopen if you bump into it again and can point to the problematic entity type.