脚本宝典收集整理的这篇文章主要介绍了doctrine2 – Doctrine 2 Console Tool说:你错过了“cli-config.php”或“config / cli-config.php”,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
$PHP vendor/doctrine/orm/bin/doctrine orm:schema-tool:create --dump-sql
我得到了这个而不是预期的功能:
You are missing a "cli-config.PHP" or "config/cli-config.PHP" file in your PRoject,which is required to get the Doctrine Console working. You can use the following sample as a template: <?PHP use Doctrine\ORM\Tools\Console\ConsoleRunner; // replace wITh file to your own project bootstrap require_once 'bootstrap.PHP'; // replace with mechanism to retrieve EntityManager in your app $entityManager = GetEntityManager(); return ConsoleRunner::createHelPErSet($entityManager);
问题:
>我在Zf2上,没有名为bootstrap.PHP的文件
>我是ZF2的新手,所以我不知道我的实体管理器是什么以及我应该为GetEntityManager放置什么
我该如何工作?
以上是脚本宝典为你收集整理的doctrine2 – Doctrine 2 Console Tool说:你错过了“cli-config.php”或“config / cli-config.php”全部内容,希望文章能够帮你解决doctrine2 – Doctrine 2 Console Tool说:你错过了“cli-config.php”或“config / cli-config.php”所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。