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.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Awaiting Feedback [ 10000 ]|
|Status||Awaiting Feedback [ 10000 ]||In Progress [ 3 ]|
|Status||In Progress [ 3 ]||Awaiting Feedback [ 10000 ]|
|Status||In Progress [ 3 ]||Resolved [ 5 ]|
|Resolution||Won't Fix [ 2 ]|