[DDC-2515] Schema tool ignores index names in mapping file and uses generated name Created: 18/Jun/13 Updated: 21/Jun/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Daniel Huss||Assignee:||Benjamin Eberlei|
I have defined an index on a foreign key colum in my .dcm.xml mapping file:
However, the resulting CREATE TABLE statement includes:
So Doctrine seems to be auto-generating indexes for all foreign key columns. I'm assuming this is a feature, even though I'd argue that there are real-life examples where the mere presence of a foreign key constraint does not justify indexing that column.
Anyway, the expected behavior is that Doctrine does not replace existing indexes with generated ones. I will attach a failing test case unless this bug is immediately dismissed as wontfix.
|Comment by Daniel Huss [ 21/Jun/13 ]|
Test case for SchemaToolTest