我在我的PHP项目中使用Doctrine ORM,并运行以下命令来验证我的模式:
php供应商/bin/doctrine orm:验证模式
运行命令后,我收到一条警告,上面写着:
[Warning] The use of this script is discouraged. See [https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/tools.html#doctrine-console](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/tools.html#doctrine-console) for instructions on bootstrapping the console runner.
这种情况发生在我尝试运行的任何Doctrine命令上,而不仅仅是orm:validate schema。
我已经查看了条令文件,但找不到关于为什么显示此警告或建议的最佳实践的明确信息。
为什么不鼓励使用此脚本?建议的替代方案是什么?