Skip to content

Commit

Permalink
setApplicationEntityManager is now defined in DoctrineCommandHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbennn committed May 9, 2011
1 parent 600ac0e commit a445d42
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Command/MigrationsDiffDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand;

/**
Expand All @@ -37,7 +38,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down
3 changes: 2 additions & 1 deletion Command/MigrationsExecuteDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\ExecuteCommand;

/**
Expand All @@ -36,7 +37,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down
3 changes: 2 additions & 1 deletion Command/MigrationsGenerateDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\GenerateCommand;

/**
Expand All @@ -36,7 +37,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down
3 changes: 2 additions & 1 deletion Command/MigrationsMigrateDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\MigrateCommand;

/**
Expand All @@ -36,7 +37,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down
3 changes: 2 additions & 1 deletion Command/MigrationsStatusDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand;

/**
Expand All @@ -36,7 +37,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down
3 changes: 2 additions & 1 deletion Command/MigrationsVersionDoctrineCommand.php
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Doctrine\DBAL\Migrations\Tools\Console\Command\VersionCommand;

/**
Expand All @@ -36,7 +37,7 @@ protected function configure()

public function execute(InputInterface $input, OutputInterface $output)
{
DoctrineCommand::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

$configuration = $this->getMigrationConfiguration($input, $output);
DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
Expand Down

0 comments on commit a445d42

Please sign in to comment.