[2.0] Fix for missing method in SchemaToolTask
This commit is contained in:
parent
afbe3add30
commit
2e5566f574
@ -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. ' .
|
||||
|
Loading…
x
Reference in New Issue
Block a user