diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index dfc25301d..b4c12e91b 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -108,7 +108,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void { if (($entityClassName = $input->getArgument('name')) && empty($this->verifyEntityName($entityClassName))) { - return; + goto entityNameVerified; } if ($input->getOption('regenerate')) { @@ -139,6 +139,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma $input->setArgument('name', $entityClassName); + entityNameVerified: if ( !$input->getOption('api-resource') && class_exists(ApiResource::class)