From 2e5566f5741c9e6a2f7bf119af7129a12ca5bfbd Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Tue, 22 Dec 2009 14:02:21 +0000 Subject: [PATCH] [2.0] Fix for missing method in SchemaToolTask --- lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php index 1cacfaaf2..1022c79dd 100644 --- a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php +++ b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php @@ -141,11 +141,11 @@ class SchemaToolTask extends AbstractTask ); } - $metadataDriver = $this->getEntityManager()->getConfiguration()->getMetadataDriverImpl(); + $metadataDriver = $em->getConfiguration()->getMetadataDriverImpl(); if ($metadataDriver instanceof \Doctrine\ORM\Mapping\Driver\AnnotationDriver) { - if (isset($args['class-dir'])) { - $metadataDriver->setClassDirectory($args['class-dir']); + if (isset($arguments['class-dir'])) { + $metadataDriver->setClassDirectory($arguments['class-dir']); } else { throw new CliException( 'The supplied configuration uses the annotation metadata driver. ' .