diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php index d23fb5a30..c01d964b8 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php @@ -27,7 +27,7 @@ use Symfony\Component\Console\Input\InputArgument, /** * Command to clear the metadata cache of the various cache drivers. * - * + * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei @@ -52,20 +52,19 @@ class MetadataCommand extends Console\Command\Command ) )); - $fullName = $this->getName(); $this->setHelp(<<$fullName command is meant to clear the metadata cache of associated Entity Manager. +The %command.name% command is meant to clear the metadata cache of associated Entity Manager. It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider instance completely. The execution type differ on how you execute the command. If you want to invalidate the entries (and not delete from cache instance), this command would do the work: -$fullName +%command.name% Alternatively, if you want to flush the cache provider using this command: -$fullName --flush +%command.name% --flush Finally, be aware that if --flush option is passed, not all cache providers are able to flush entries, because of a limitation of its execution nature. diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php index c6e415e25..a984b9603 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php @@ -27,7 +27,7 @@ use Symfony\Component\Console\Input\InputArgument, /** * Command to clear the query cache of the various cache drivers. * - * + * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei @@ -52,20 +52,19 @@ class QueryCommand extends Console\Command\Command ) )); - $fullName = $this->getName(); $this->setHelp(<<$fullName command is meant to clear the query cache of associated Entity Manager. +The %command.name% command is meant to clear the query cache of associated Entity Manager. It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider instance completely. The execution type differ on how you execute the command. If you want to invalidate the entries (and not delete from cache instance), this command would do the work: -$fullName +%command.name% Alternatively, if you want to flush the cache provider using this command: -$fullName --flush +%command.name% --flush Finally, be aware that if --flush option is passed, not all cache providers are able to flush entries, because of a limitation of its execution nature. diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php index b469e3e0f..096aa53a7 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php @@ -27,7 +27,7 @@ use Symfony\Component\Console\Input\InputArgument, /** * Command to clear the result cache of the various cache drivers. * - * + * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei @@ -52,20 +52,19 @@ class ResultCommand extends Console\Command\Command ) )); - $fullName = $this->getName(); $this->setHelp(<<$fullName command is meant to clear the result cache of associated Entity Manager. +The %command.name% command is meant to clear the result cache of associated Entity Manager. It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider instance completely. The execution type differ on how you execute the command. If you want to invalidate the entries (and not delete from cache instance), this command would do the work: -$fullName +%command.name% Alternatively, if you want to flush the cache provider using this command: -$fullName --flush +%command.name% --flush Finally, be aware that if --flush option is passed, not all cache providers are able to flush entries, because of a limitation of its execution nature. diff --git a/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php index 5494d71f3..b0902bab4 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php @@ -27,7 +27,7 @@ use Symfony\Component\Console\Command\Command; /** * Show information about mapped entities * - * + * * @link www.doctrine-project.org * @since 2.1 * @author Benjamin Eberlei @@ -40,7 +40,7 @@ class InfoCommand extends Command ->setName('orm:info') ->setDescription('Show basic information about all mapped entities') ->setHelp(<<doctrine:mapping:info shows basic information about which +The %command.name% shows basic information about which entities exist and possibly if their mapping information contains errors or not. EOT diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php index 897229f30..26552cc45 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php @@ -29,7 +29,7 @@ use Symfony\Component\Console\Input\InputArgument, * Command to generate the SQL needed to update the database schema to match * the current mapping information. * - * + * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei @@ -68,20 +68,19 @@ class UpdateCommand extends AbstractCommand ), )); - $fullName = $this->getName(); $this->setHelp(<<$fullName command generates the SQL needed to +The %command.name% 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: -$fullName --dump-sql +%command.name% --dump-sql Alternatively, you can execute the generated queries: -$fullName --force +%command.name% --force Finally, be aware that if the --complete option is passed, this task will drop all database assets (e.g. tables, etc) that are *not* described