symfony - 如何指定要进行逆向工程的数据库?

标签 symfony doctrine-orm

我正在关注 this guide对数据库进行逆向工程。该指南说它使用 paramters.yml 文件作为数据库参数,但我该如何覆盖它呢?我的 config.yml 中列出了多个连接,我希望能够选择其中之一。

最佳答案

使用 --em 参数指定您要使用的实体管理器。

doctrine:mapping:convert [--filter="..."] [--force] [--from-database] [--extend[="..."]] [--num-spaces[="..."]] [--namespace[="..."]] [--em[="..."]] to-type dest-path

关于symfony - 如何指定要进行逆向工程的数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15436394/

相关文章:

Symfony2 - 可捕获的 fatal error : _construct() must be an instance of Doctrine\ORM\EntityManager

php - Symfony2如何使用验证器组件验证唯一的电子邮件

交响乐2 : Using Translatable and Loggable together

php - 学说迁移 : How to avoid SQL errors in the postUp step?

mysql - Doctrine 查询生成器,按生日过滤(使用 DateTime)?

php - symfony 从 json 数据中保留日期时间

php - 如何让 Symfony 启动进程 PID?

php - Symfony2 在一对多多对一关系中形成持久性

node.js - 在 Windows 上的 Symfony 2 项目中编译 Bootstrap 3

php - Doctrine Annotations Exception - 奇怪的错误