From 89c71138e6d0dfd5e1cf2bd8addebbadcaf9c601 Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Wed, 14 Apr 2010 20:39:51 -0400 Subject: [PATCH] Fixing changed method names --- .../Console/Command/ConvertDoctrine1SchemaCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php index ae297c84f..2af1eb04b 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php @@ -134,16 +134,16 @@ EOT } $converter = new ConvertDoctrine1Schema($fromPaths); - $metadatas = $converter->getMetadatas(); + $metadata = $converter->getMetadata(); if ($metadatas) { $output->write(PHP_EOL); - foreach ($metadatas as $metadata) { - $output->write(sprintf('Processing entity "%s"', $metadata->name) . PHP_EOL); + foreach ($metadata as $class) { + $output->write(sprintf('Processing entity "%s"', $class->name) . PHP_EOL); } - $exporter->setMetadatas($metadatas); + $exporter->setMetadata($metadata); $exporter->export(); $output->write(PHP_EOL . sprintf(