If the only purpose of declaring the indexes in the entities is to have the schema tool report that they are in sync with the db, then it’s actually not always achievable, see this discussion on a bug I just opened:
http://www.doctrine-project.org/jira/browse/DDC-3468 And if you’re not using the schema tools anymore, then @Index and @UniqueConstraint are pretty much useless as far as I understand? From: [email protected] [mailto:[email protected]] On Behalf Of Nima Sadjadi Sent: 31 December 2014 10:18 To: [email protected] Subject: RE: [doctrine-user] Custom index / foreign key names? The answer is easy: Obviously entities must always be in sync with db. -- You received this message because you are subscribed to a topic in the Google Groups "doctrine-user" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/doctrine-user/xgtklOuok0A/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
