diff --git a/lib/Doctrine/Import/Schema.php b/lib/Doctrine/Import/Schema.php index eff1ebe8e..daeb6d8b4 100644 --- a/lib/Doctrine/Import/Schema.php +++ b/lib/Doctrine/Import/Schema.php @@ -103,11 +103,11 @@ abstract class Doctrine_Import_Schema public function buildRelationships($array) { - foreach($array AS $name => $properties) { + foreach($array as $name => $properties) { $className = $properties['className']; $relations = $properties['relations']; - foreach ($relations AS $alias => $relation) { + foreach ($relations as $alias => $relation) { $class = isset($relation['class']) ? $relation['class']:$alias; $relation['alias'] = $alias;