protected function configure()
 {
     parent::configure();
     if (!$this->getDefinition()->hasOption('skip-mapping')) {
         $this->addOption('skip-mapping', null, InputOption::VALUE_NONE, 'Skip the mapping validation check');
     }
     if (!$this->getDefinition()->hasOption('skip-sync')) {
         $this->addOption('skip-sync', null, InputOption::VALUE_NONE, 'Skip checking if the mapping is in sync with the database');
     }
     $this->addOption('debug-mode', NULL, InputOption::VALUE_OPTIONAL, "Force Tracy debug mode", TRUE);
 }
Ejemplo n.º 2
0
    /**
     * {@inheritDoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:schema:validate')->setDescription('Validates the doctrine mapping files')->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')->setHelp(<<<EOT
The <info>doctrine:schema:validate</info> checks the current mappings
for valid forward and reverse mappings.

<info>php app/console doctrine:schema:validate</info>

You can also optionally specify the <comment>--em</comment> option to specify
which entity manager use for the validation.

<info>php app/console doctrine:schema:validate --em=default</info>
EOT
);
    }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:schema:validate')->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->addOption('em', NULL, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }