コード例 #1
0
ファイル: OrmCreateCommand.php プロジェクト: mindgruve/gruver
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:orm:create')->setDescription('Executes (or dumps) the SQL needed to generate the database schema')->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.');
 }
コード例 #2
0
ファイル: OrmUpdateCommand.php プロジェクト: mindgruve/gruver
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:orm:update')->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata.')->addOption('complete', null, InputOption::VALUE_NONE, 'If defined, all assets of the database which are not relevant to the current metadata will be dropped.')->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.')->addOption('force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.');
 }
コード例 #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:orm:generate-proxies')->setDescription('Generates proxy classes for entity classes.')->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')->addArgument('dest-path', InputArgument::OPTIONAL, 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.');
 }