protected function configure()
    {
        parent::configure();

        $this
            ->setName('doctrine:schema:update')
            ->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata.')
            ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
            ->setHelp(<<<EOT
The <info>doctrine:schema:update</info> command generates the SQL needed to
synchronize the database schema with the current mapping metadata of the
default entity manager.

For example, if you add metadata for a new column to an entity, this command
would generate and output the SQL needed to add the new column to the database:

<info>./app/console doctrine:schema:update --dump-sql</info>

Alternatively, you can execute the generated queries:

<info>./app/console doctrine:schema:update --force</info>

You can also update the database schema for a specific entity manager:

<info>./app/console doctrine:schema:update --em=default</info>
EOT
        );
    }
    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:schema:update')->addOption('em', null, InputOption::PARAMETER_OPTIONAL, 'The entity manager to use for this command.')->setHelp(<<<EOT
The <info>doctrine:schema:update</info> command updates the default entity managers schema:

  <info>./symfony doctrine:schema:update</info>

You can also optionally specify the name of a entity manager to update the schema for:

  <info>./symfony doctrine:schema:update --em=default</info>
EOT
);
    }
 protected function configure()
 {
     parent::configure();
     $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->addOption('em', NULL, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }
 protected function configure()
 {
     parent::configure();
     $this->addOption('debug-mode', NULL, InputOption::VALUE_OPTIONAL, "Force Tracy debug mode", TRUE);
 }
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:schema:update')->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:schema:update');
 }
Пример #8
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     parent::configure();
 }