8000 fix bug in Symfony\Bundle\DoctrineMigrationsBundle\Command\DoctrineCommand by stfalcon · Pull Request #56 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

fix bug in Symfony\Bundle\DoctrineMigrationsBundle\Command\DoctrineCommand #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bug in Symfony\Bundle\DoctrineMigrationsBundle\Command\DoctrineCo…
…mmand
  • Loading branch information
stfalcon committed Jan 24, 2011
commit 05e60b3153a1fc8c0362ac0b443bc830e5e6c2db
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public static function configureMigrationsForBundle(Application $application, $b
{
$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');
}
}
}
0