Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.2
-
Fix Version/s: 1.2.3
-
Component/s: Import/Export
-
Labels:None
-
Environment:PHP 5.3, OSX, APC
Description
I ran into a bug where there were two duplicate indexes that Doctrine was trying to create.
Not too sure what the cause is yet but this fix took care of the problem for me.
Line 161 of Doctrine/Export/MySQL.php
// Case Insensitive checking for duplicate indexes...
$dupes = array();
foreach ($options['indexes'] as $key => $index) {
if (in_array(strtolower($key), $dupes))
else
{ $dupes[] = strtolower($key); } }
unset($dupes);
I don't think this is a good change. You should instead fix it by identifying why you have 2 indexes with the same name, instead of this hack.