How to solve 'Badly constructed integrity constraints' in doctrine

Posted by Carson on Stack Overflow See other posts from Stack Overflow or by Carson
Published on 2010-05-27T22:14:27Z Indexed on 2010/05/28 0:01 UTC
Read the original article Hit count: 218

Filed under:

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 source code of Doctrine that outputs the error: here

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

© Stack Overflow or respective owner

Related posts about doctrine