fix bug in Symfony\Bundle\DoctrineMigrationsBundle\Command\DoctrineCommand
This commit is contained in:
parent
1bc0b54411
commit
4408cbc9fa
@ -27,12 +27,12 @@ abstract class DoctrineCommand extends BaseCommand
|
||||
{
|
||||
$configuration->setMigrationsNamespace($bundle.'\DoctrineMigrations');
|
||||
|
||||
$bundle = $this->application->getKernel()->getBundle($input->getArgument('bundle'));
|
||||
$bundle = $application->getKernel()->getBundle($bundle);
|
||||
$dir = $bundle->getPath().'/DoctrineMigrations';
|
||||
|
||||
$configuration->setMigrationsDirectory($dir);
|
||||
$configuration->registerMigrationsFromDirectory($dir);
|
||||
$configuration->setName($bundle.' Migrations');
|
||||
$configuration->setName($bundle->getName().' Migrations');
|
||||
$configuration->setMigrationsTableName(Inflector::tableize($bundle->getName()).'_migration_versions');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user