コード例 #1
0
    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:cache:clear-query')->setDescription('Clear all query cache for a entity manager.')->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')->setHelp(<<<EOT
The <info>doctrine:cache:clear-query</info> command clears all query cache for the default entity manager:

  <info>./app/console doctrine:cache:clear-query</info>

You can also optionally specify the <comment>--em</comment> option to specify which entity manager to clear the cache for:

  <info>./app/console doctrine:cache:clear-query --em=default</info>
EOT
);
    }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:cache:clear-query');
 }
コード例 #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:cache-clear:query');
     $this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'Entity manager to use')->addOption('con', null, InputOption::VALUE_OPTIONAL, 'Connection to use');
 }
コード例 #4
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:cache:clear-query')->setDescription('Clears all query cache for an entity manager')->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }