for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka ([email protected])
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
namespace Kdyby\Doctrine\Console;
use Doctrine;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
* @author Tomas Jacik <[email protected]>
class ConvertMappingCommand extends Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand
{
* @var \Kdyby\Doctrine\Tools\CacheCleaner
* @inject
public $cacheCleaner;
public function __construct()
parent::__construct();
}
* {@inheritDoc}
protected function configure()
parent::configure();
$this->addOption('em', NULL, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
protected function initialize(InputInterface $input, OutputInterface $output)
parent::initialize($input, $output);
if ($input->getOption('em')) {
CommandHelper::setApplicationEntityManager($this->getHelper('container'), $input->getOption('em'));
$this->cacheCleaner->invalidate();