开发者

How to solve 'Badly constructed integrity constraints' in doctrine

开发者 https://www.devze.com 2023-01-01 13:02 出处:网络
When I execute the command \'./doctrine build-all-reload\' It comes out the following output: build-all-reload - Are you sure you wish to drop your databases? (y/n) y

When I execute the command './doctrine build-all-reload'

It comes out the following output:

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 is the 开发者_如何学Csource code of Doctrine that outputs the error: here

What causes the error? How can I debug where the error comes from?


Could you post the code of either your YAML File or - if you wrote them yourself - your Models? That's where the problem should be.

0

精彩评论

暂无评论...
验证码 换一张
取 消