* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * Execute a Doctrine DQL query and output the results. * * @package Symfony * @subpackage Framework_DoctrineBundle * @author Fabien Potencier * @author Jonathan H. Wage */ class RunDqlDoctrineCommand extends RunDqlCommand { /** * @see Command */ protected function configure() { parent::configure(); $this->setName('doctrine:run-dql'); $this->addOption('em', null, InputOption::PARAMETER_OPTIONAL, 'The entity manager to execute the DQL query on.'); } /** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em')); return parent::execute($input, $output); } }