From 50f727b58e65daafee003dd4642e5f26ec096e0d Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Tue, 17 Nov 2009 01:43:01 +0000 Subject: [PATCH] [2.0] Major refactorings to CLI. New documentation applied. Missing validation and tests --- .../ORM/Tools/Cli/Tasks/SchemaToolTask.php | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php index 806902c84..9f8f89998 100644 --- a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php +++ b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php @@ -87,58 +87,6 @@ class SchemaToolTask extends AbstractTask ->addOption($optionalOptions); } - /** - * @inheritdoc - */ - /*public function extendedHelp() - { - $printer = $this->getPrinter(); - - $printer->write('Task: ')->writeln('schema-tool', 'KEYWORD') - ->write('Synopsis: '); - $this->_writeSynopsis($printer); - - $printer->writeln('Description: Processes the schema and either apply it directly on EntityManager or generate the SQL output.') - ->writeln('Options:') - ->write('--create', 'REQ_ARG') - ->writeln("\t\tCreates the schema in EntityManager (create tables on Database)") - ->writeln("\t\t\tIf defined, --drop and --update can not be requested on same task") - ->write(PHP_EOL) - ->write('--drop=', 'REQ_ARG') - ->writeln("\t\t\tDrops the schema of EntityManager (drop tables on Database)") - ->writeln("\t\t\tDefaults to 'metadata' if only --drop is specified.") - ->writeln("\t\t\tIf defined, --create and --update can not be requested on same task") - ->write(PHP_EOL) - ->write('--update', 'REQ_ARG') - ->writeln("\t\tUpdates the schema in EntityManager (update tables on Database)") - ->writeln("\t\t\tIf defined, --create and --drop can not be requested on same task") - ->write(PHP_EOL) - ->write('--re-create', 'REQ_ARG') - ->writeln("\t\tRuns --drop then --create to re-create the database.") - ->write(PHP_EOL) - ->write('--dump-sql', 'OPT_ARG') - ->writeln("\t\tInstead of try to apply generated SQLs into EntityManager, output them.") - ->write(PHP_EOL) - ->write('--class-dir=', 'OPT_ARG') - ->writeln("\tOptional class directory to fetch for Entities.") - ->write(PHP_EOL); - }*/ - - /** - * @inheritdoc - */ - /*public function basicHelp() - { - $this->_writeSynopsis($this->getPrinter()); - } - - private function _writeSynopsis($printer) - { - $printer->write('schema-tool', 'KEYWORD') - ->write(' (--create | --drop= | --update | --re-create)', 'REQ_ARG') - ->writeln(' [--dump-sql] [--class-dir=]', 'OPT_ARG'); - }*/ - /** * @inheritdoc */