Commit 2e5566f5 authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Fix for missing method in SchemaToolTask

parent afbe3add
......@@ -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. ' .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment