Skip to content


DDC-1617: EntityGenerator does not create uniqueConstraints annotations #2257

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user davidbadura:

I have add some uniqueConstraints in ClassMetadataInfo but the EntityGenerator does not create the annotations for this.


private function _generateTableAnnotation($metadata)
    $table = array();

    if (isset($metadata->table['schema'])) {
         $table[] = 'schema="' . $metadata->table['schema'] . '"';

    if (isset($metadata->table['name'])) {
        $table[] = 'name="' . $metadata->table['name'] . '"';

    return '@' . $this->_annotationsPrefix . 'Table(' . implode(', ', $table) . ')';


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.2 milestone
@doctrinebot doctrinebot closed this
@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.