From 53eb2ea087ef8f5df3d9017de35a547c6c0d9fa7 Mon Sep 17 00:00:00 2001 From: phuson Date: Mon, 29 Oct 2007 01:07:14 +0000 Subject: [PATCH] revert change because it was breaking something else...needs to think of another way to do this. --- lib/Doctrine/Import/Schema.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/Doctrine/Import/Schema.php b/lib/Doctrine/Import/Schema.php index 12850671a..f5ccb5a05 100644 --- a/lib/Doctrine/Import/Schema.php +++ b/lib/Doctrine/Import/Schema.php @@ -210,19 +210,7 @@ class Doctrine_Import_Schema */ public function getRelations($properties) { - $all_relations = isset($this->_relations[$properties['className']]) ? $this->_relations[$properties['className']]:array(); - - // This is for checking for duplicates between alias-relations and a auto-generated relations to ensure the result set of unique relations - $exist_relations = array(); - $unique_relations = array(); - foreach ($all_relations as $relation) { - if (!in_array($relation['class'], $exist_relations)) { - $exist_relations[] = $relation['class']; - $unique_relations = array_merge($unique_relations, array($relation['alias'] => $relation)); - } - } - - return $unique_relations; + return isset($this->_relations[$properties['className']]) ? $this->_relations[$properties['className']]:array(); } /**