symfony/symfony — Issue #3318: Error in Many to Many relations due to invalid table name
Author: smalot
Created: 2012-02-09 19:27:16+00:00
State: open

Hi,

In "many to many" table relation, the table name is stored in lowercase.
Which is a problem on MySQL because on Unix environments MySQL is cases sensitive on table names.

So the fix is the following :

In Symfony2 (release 2.0.10) the concerned file is :

vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php : line 253

- 'name' => strtolower($manyTable->getName()),
+ 'name' => $manyTable->getName(),

I don't know why a strtolower is applied, but for it's a mistake, due to case sensitive environments.

Hope it will help you, and the fixe be present in futures releases.

Best regards,