Skip to content


DDC-2567: auto generated index name cannot be overriden with annotation #3294

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user nicolasricci:


I have an unexpected behaviour when generating SQL from an entity using annotation.

The default indexes name (generated by _generateIdentifierName) are automatically overwriting the name I have specified in my entity.

I have patched the following file

// check for duplicates
foreach ($this->_indexes as $idxKey => $existingIndex) {
if ($indexCandidate->isFullfilledBy($existingIndex)) {
//return $this; // old implementation

but I don't think this is the correct way forward.

Let me know if you require more information


@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.