1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[2.0] Fix for missing method in SchemaToolTask

This commit is contained in:
guilhermeblanco 2009-12-22 14:02:21 +00:00
parent afbe3add30
commit 2e5566f574

View File

@ -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. ' .