2010-05-27 84 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