Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行命令后:
composer require doctrine maker
我尝试使用以下命令创建数据库:
php bin/console doctrine:database:create
并尝试使用以下命令创建新实体:
php bin/console make:entity Product
但我只是收到消息:
[错误] 运行命令 ""make:entity" Product" 时引发错误。消息:““make”命名空间中没有定义命令。”
我安装了 PHP v7.2.1
再次需要Maker包
然后控制台命令运行良好。
问题似乎是因为 Composer.json 需要 PHP 7.1.3。
实际上 Symfony 4 需要 PHP 7.1