我运行了doctrine控制台工具:
$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放置什么
我该如何工作?