* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * Command for manually adding and deleting migration versions from the version table. * * @package Symfony * @subpackage Framework_DoctrineBundle * @author Fabien Potencier * @author Jonathan H. Wage */ class MigrationsVersionDoctrineCommand extends VersionCommand { protected function configure() { parent::configure(); $this ->setName('doctrine:migrations:version') ->addOption('bundle', null, InputOption::PARAMETER_REQUIRED, 'The bundle to load migrations configuration from.') ->addOption('em', null, InputOption::PARAMETER_OPTIONAL, 'The entity manager to use for this command.') ; } public function execute(InputInterface $input, OutputInterface $output) { DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em')); parent::execute($input, $output); } }