I was reading about cross database joins in Doctrine on their blog: http://www.doctrine-project.org/blog/cross-database-joins.html
The problem is that whenever table name contains a dot (used to specify the database), doctrine:schema:update
outputs Nothing to update - your database is already in sync with the current entity metadata.
The command basically just ignores entities whose table name contains a dot.
Cross数据库在PHP中与Doctrine连接
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dongweicha6077 2013-03-13 15:58关注
This is normal and it is a limitation of the ORM/DBAL.
The
Doctrine\ORM\Tools\SchemaTool
uses a schema manager retrieved from your current connection.The
Doctrine\DBAL\Schema\AbstractSchemaManager
reads the tables from the current connection's db, and not from all databases.Therefore, you have to manually handle tables placed in different DBs, or use your own schema manager with your own
listTables
implementation.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥40 复杂的限制性的商函数处理
- ¥15 程序不包含适用于入口点的静态Main方法
- ¥15 素材场景中光线烘焙后灯光失效
- ¥15 请教一下各位,为什么我这个没有实现模拟点击
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码