diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index 23772bb08..47614d066 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -1008,6 +1008,7 @@ class Doctrine_Export extends Doctrine_Connection_Module } } } + $sql = array_unique($sql); rsort($sql); return $sql;