2010-05-27 89 views
0

当我执行命令“./doctrine集结所有重载”如何解决学说“严重构建完整性约束”

它配备了以下的输出:

build-all-reload - Are you sure you wish to drop your databases? (y/n) y

build-all-reload - Successfully dropped database for connection named 'doctrine'

build-all-reload - Generated models successfully from YAML schema

build-all-reload - Successfully created database for connection named 'doctrine'

Badly constructed integrity constraints. Cannot define constraint of different f ields in the same table.

这里是原理输出错误的源代码:here

什么原因导致错误?我如何调试错误来自哪里?

回答

0

你可以发布你的YAML文件的代码或者 - 如果你自己写的 - 你的模型?这就是问题所在。

+0

好的谢谢,我发现了错误。它涉及表格的创建顺序 – Capitaine 2010-06-02 15:23:13