From 93289e32e79d9c04c85bda4952dec936a92e04a6 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Mon, 15 Feb 2016 17:48:29 +0000 Subject: [PATCH] Multiple dialects require a --list per dialect Without using ``--list|-l`` you get a too many arguments error. As an example ... ``` [ 15/02/2016 17:45:32 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re mysql57 mysql [Symfony\Component\Console\Exception\RuntimeException] Too many arguments. dbal:reserved-words [-l|--list [LIST]] [ 15/02/2016 17:47:39 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 mysql [Symfony\Component\Console\Exception\RuntimeException] Too many arguments. dbal:reserved-words [-l|--list [LIST]] [ 15/02/2016 17:47:48 ] [ C:\wamp\www ] >vendor\bin\doctrine-dbal d:re -l mysql57 -l mysql Checking keyword violations for mysql57, mysql... There are 5 reserved keyword violations in your database schema: - Table affiliates column key keyword violations: MySQL57, MySQL - Table epos_landing_pages column key keyword violations: MySQL57, MySQL - Table purchase_notifications column trigger keyword violations: MySQL57, MySQL - Table xpermissions column add keyword violations: MySQL57, MySQL - Table xpermissions column delete keyword violations: MySQL57, MySQL ``` --- .../DBAL/Tools/Console/Command/ReservedWordsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php b/lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php index f7acd0a86ee..4c8168b0549 100644 --- a/lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php +++ b/lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php @@ -87,7 +87,7 @@ protected function configure() If you want to check against specific dialects you can pass them to the command: - %command.full_name% mysql pgsql + %command.full_name% -l mysql -l pgsql The following keyword lists are currently shipped with Doctrine: