Disable automatic index on related object id from yml

Posted by BugBusterX on Stack Overflow See other posts from Stack Overflow or by BugBusterX
Published on 2011-01-06T10:41:06Z Indexed on 2011/01/09 14:53 UTC
Read the original article Hit count: 161

Filed under:
|
|
|

Doctrine Automatically creates indexes on columns that are used to define object relations,

For example

user: id, name

message: id, sender_id, receiver_id, message

if I define relationship between message and user in a way that message has one Sender and has one Receiver, doctrine will automatically index sender_id and receiver_id fields when I generate sql from model. I would like to disable index on sender, because I manually create index with sender_id and receiver id together. How can I disable auto generated index?

© Stack Overflow or respective owner

Related posts about symfony

Related posts about doctrine