From ffa372a76c8b0a6f01c4aedc8af401442f3bd80a Mon Sep 17 00:00:00 2001 From: Hugo Hamon Date: Thu, 12 Jan 2012 20:05:56 +0100 Subject: [PATCH] [Tools] removed unused local variable in YamlExporter class. --- lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php index 2d16792b1..457a0430e 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php @@ -115,7 +115,7 @@ class YamlExporter extends AbstractExporter } if ($idGeneratorType = $this->_getIdGeneratorTypeString($metadata->generatorType)) { - $ids[$metadata->getSingleIdentifierFieldName()]['generator']['strategy'] = $this->_getIdGeneratorTypeString($metadata->generatorType); + $ids[$metadata->getSingleIdentifierFieldName()]['generator']['strategy'] = $idGeneratorType; } if ($ids) { @@ -129,7 +129,6 @@ class YamlExporter extends AbstractExporter $array['fields'] = array_merge($array['fields'], $fieldMappings); } - $associations = array(); foreach ($metadata->associationMappings as $name => $associationMapping) { $cascade = array(); if ($associationMapping['isCascadeRemove']) {