Skip to content


DDC-2011: Schema tool fail to handle ManyToMany relation with an existing joinTable #2688

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user erichard:

The schemaTool fail with a Doctrine\DBAL\Schema\SchemaException when trying to handle ManyToMany relation with an existing joinTable.

My use case :

I'm using the Tree DoctrineExtension with the Closure strategy. It create a mapping between my Category entity and a CategoryClosure entity.

For conveniency, I've setup a ManyToMany relation between Category and Category with the CategoryClosure table as joinTable.

Doctrine ORM handle perfectly this case but the schema tool is failing with :
The table with name 'category_closure' already exists.


Issue was closed with resolution "Won't Fix"


Comment created by @asm89:

You can't expect the schematool to play nice if you use the table of an entity as m2m table.

@beberlei beberlei was assigned by doctrinebot
@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.