我尝试使用Symfony的制造商包添加一个新实体,但我无法摆脱此错误,请提供任何帮助:/?
它发生在之后
php bin/console make:entity
Class name of the entity to create or update (e.g. GrumpyJellybean):
> Customer
Your entity already exists! So let's add some new fields!
PHP Fatal error: During class fetch: Uncaught ErrorException: Warning: chdir(): No such file or directory (errno......
Error: During class fetch: Uncaught ErrorException: Warning: chdir(): No such file or directory (errno 2) in
/Users/loic/Documents/TFE/cmi-3/vendor/symfony/debug/DebugClassLoader.php:458
Stack trace:
#0 phar:///Users/loic/Documents/TFE/cmi-3/vendor/phpstan/phpstan-shim/phpstan.phar/vendor/nikic/php-parser/l
ib/PhpParser/Lexer/Emulative.php(12): spl_autoload_call('PhpParser\Lexer')
#1 /Users/loic/Documents/TFE/cmi-3/vendor/symfony/maker-bundle/src/Util/ClassSourceManipulator.php(63): spl_
autoload_call('PhpParser\Lexer...')
#2 /Users/loic/Documents/TFE/cmi-3/vendor/symfony/maker-bundle/src/Maker/MakeEntity.php(743): SymfonyBundle
MakerBundleUtilClassSourceManipulator->__construct('<?phpnnnamespac...', false)
#3 /Users/loic/Documents/TFE/cmi-3/vendor/symfony/maker-bundle/src/Maker/MakeEntity.php(167): SymfonyBundle
MakerBundleMakerMakeEntity->createClassManipulator('/Users/loic/Doc...', Object(SymfonyBundleMakerBundl
eConsoleStyle), false)
现在我让它工作
php bin/console make:entity --no-debug
它会完成这项工作,但我仍然不知道发生了什么。