@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | $em = $this->createMock(EntityManagerInterface::class); |
61 | 61 | |
62 | 62 | $mappingDriver->method('getAllClassNames') |
63 | - ->willReturn([]); |
|
63 | + ->willReturn([]); |
|
64 | 64 | |
65 | 65 | $configuration->method('getMetadataDriverImpl') |
66 | - ->willReturn($mappingDriver); |
|
66 | + ->willReturn($mappingDriver); |
|
67 | 67 | |
68 | 68 | $em->method('getConfiguration') |
69 | - ->willReturn($configuration); |
|
69 | + ->willReturn($configuration); |
|
70 | 70 | |
71 | 71 | $application = new Application(); |
72 | 72 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -95,17 +95,17 @@ discard block |
||
95 | 95 | $em = $this->createMock(EntityManagerInterface::class); |
96 | 96 | |
97 | 97 | $mappingDriver->method('getAllClassNames') |
98 | - ->willReturn(['InvalidEntity']); |
|
98 | + ->willReturn(['InvalidEntity']); |
|
99 | 99 | |
100 | 100 | $configuration->method('getMetadataDriverImpl') |
101 | - ->willReturn($mappingDriver); |
|
101 | + ->willReturn($mappingDriver); |
|
102 | 102 | |
103 | 103 | $em->method('getConfiguration') |
104 | - ->willReturn($configuration); |
|
104 | + ->willReturn($configuration); |
|
105 | 105 | |
106 | 106 | $em->method('getClassMetadata') |
107 | - ->with('InvalidEntity') |
|
108 | - ->willThrowException(new MappingException('exception message')); |
|
107 | + ->with('InvalidEntity') |
|
108 | + ->willThrowException(new MappingException('exception message')); |
|
109 | 109 | |
110 | 110 | $application = new Application(); |
111 | 111 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -143,16 +143,16 @@ |
||
143 | 143 | $em = $this->createMock(EntityManagerInterface::class); |
144 | 144 | |
145 | 145 | $configuration->method('getDefaultRepositoryClassName') |
146 | - ->willReturn('fooRepository'); |
|
146 | + ->willReturn('fooRepository'); |
|
147 | 147 | |
148 | 148 | $metadataFactory->method('getAllMetadata') |
149 | 149 | ->willReturn([]); |
150 | 150 | |
151 | 151 | $em->method('getMetadataFactory') |
152 | - ->willReturn($metadataFactory); |
|
152 | + ->willReturn($metadataFactory); |
|
153 | 153 | |
154 | 154 | $em->method('getConfiguration') |
155 | - ->willReturn($configuration); |
|
155 | + ->willReturn($configuration); |
|
156 | 156 | |
157 | 157 | $application = new Application(); |
158 | 158 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -45,14 +45,14 @@ |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName('orm:run-dql') |
48 | - ->setDescription('Executes arbitrary DQL directly from the command line') |
|
49 | - ->addArgument('dql', InputArgument::REQUIRED, 'The DQL to execute.') |
|
50 | - ->addOption('hydrate', null, InputOption::VALUE_REQUIRED, 'Hydration mode of result set. Should be either: object, array, scalar or single-scalar.', 'object') |
|
51 | - ->addOption('first-result', null, InputOption::VALUE_REQUIRED, 'The first result in the result set.') |
|
52 | - ->addOption('max-result', null, InputOption::VALUE_REQUIRED, 'The maximum number of results in the result set.') |
|
53 | - ->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Dumping depth of Entity graph.', 7) |
|
54 | - ->addOption('show-sql', null, InputOption::VALUE_NONE, 'Dump generated SQL instead of executing query') |
|
55 | - ->setHelp('Executes arbitrary DQL directly from the command line.'); |
|
48 | + ->setDescription('Executes arbitrary DQL directly from the command line') |
|
49 | + ->addArgument('dql', InputArgument::REQUIRED, 'The DQL to execute.') |
|
50 | + ->addOption('hydrate', null, InputOption::VALUE_REQUIRED, 'Hydration mode of result set. Should be either: object, array, scalar or single-scalar.', 'object') |
|
51 | + ->addOption('first-result', null, InputOption::VALUE_REQUIRED, 'The first result in the result set.') |
|
52 | + ->addOption('max-result', null, InputOption::VALUE_REQUIRED, 'The maximum number of results in the result set.') |
|
53 | + ->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Dumping depth of Entity graph.', 7) |
|
54 | + ->addOption('show-sql', null, InputOption::VALUE_NONE, 'Dump generated SQL instead of executing query') |
|
55 | + ->setHelp('Executes arbitrary DQL directly from the command line.'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | protected function configure() |
44 | 44 | { |
45 | 45 | $this->setName('orm:schema-tool:create') |
46 | - ->setDescription('Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output') |
|
47 | - ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.') |
|
48 | - ->setHelp(<<<EOT |
|
46 | + ->setDescription('Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output') |
|
47 | + ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.') |
|
48 | + ->setHelp(<<<EOT |
|
49 | 49 | Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output. |
50 | 50 | |
51 | 51 | <comment>Hint:</comment> If you have a database with tables that should not be managed |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | \$config->setFilterSchemaAssetsExpression(\$regexp); |
56 | 56 | EOT |
57 | - ); |
|
57 | + ); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | protected function configure() |
44 | 44 | { |
45 | 45 | $this->setName('orm:schema-tool:drop') |
46 | - ->setDescription('Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output') |
|
47 | - ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.') |
|
48 | - ->addOption('force', 'f', InputOption::VALUE_NONE, "Don't ask for the deletion of the database, but force the operation to run.") |
|
49 | - ->addOption('full-database', null, InputOption::VALUE_NONE, 'Instead of using the Class Metadata to detect the database table schema, drop ALL assets that the database contains.') |
|
50 | - ->setHelp(<<<EOT |
|
46 | + ->setDescription('Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output') |
|
47 | + ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.') |
|
48 | + ->addOption('force', 'f', InputOption::VALUE_NONE, "Don't ask for the deletion of the database, but force the operation to run.") |
|
49 | + ->addOption('full-database', null, InputOption::VALUE_NONE, 'Instead of using the Class Metadata to detect the database table schema, drop ALL assets that the database contains.') |
|
50 | + ->setHelp(<<<EOT |
|
51 | 51 | Processes the schema and either drop the database schema of EntityManager Storage Connection or generate the SQL output. |
52 | 52 | Beware that the complete database is dropped by this command, even tables that are not relevant to your metadata model. |
53 | 53 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | \$config->setFilterSchemaAssetsExpression(\$regexp); |
59 | 59 | EOT |
60 | - ); |
|
60 | + ); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | protected function configure() |
51 | 51 | { |
52 | 52 | $this->setName($this->name) |
53 | - ->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata') |
|
54 | - ->addOption('complete', null, InputOption::VALUE_NONE, 'If defined, all assets of the database which are not relevant to the current metadata will be dropped.') |
|
55 | - ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Dumps the generated SQL statements to the screen (does not execute them).') |
|
56 | - ->addOption('force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.') |
|
57 | - ->setHelp(<<<EOT |
|
53 | + ->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata') |
|
54 | + ->addOption('complete', null, InputOption::VALUE_NONE, 'If defined, all assets of the database which are not relevant to the current metadata will be dropped.') |
|
55 | + ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Dumps the generated SQL statements to the screen (does not execute them).') |
|
56 | + ->addOption('force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.') |
|
57 | + ->setHelp(<<<EOT |
|
58 | 58 | The <info>%command.name%</info> command generates the SQL needed to |
59 | 59 | synchronize the database schema with the current mapping metadata of the |
60 | 60 | default entity manager. |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | \$config->setFilterSchemaAssetsExpression(\$regexp); |
86 | 86 | EOT |
87 | - ); |
|
87 | + ); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -45,10 +45,10 @@ |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName('orm:validate-schema') |
48 | - ->setDescription('Validate the mapping files') |
|
49 | - ->addOption('skip-mapping', null, InputOption::VALUE_NONE, 'Skip the mapping validation check') |
|
50 | - ->addOption('skip-sync', null, InputOption::VALUE_NONE, 'Skip checking if the mapping is in sync with the database') |
|
51 | - ->setHelp('Validate that the mapping files are correct and in sync with the database.'); |
|
48 | + ->setDescription('Validate the mapping files') |
|
49 | + ->addOption('skip-mapping', null, InputOption::VALUE_NONE, 'Skip the mapping validation check') |
|
50 | + ->addOption('skip-sync', null, InputOption::VALUE_NONE, 'Skip checking if the mapping is in sync with the database') |
|
51 | + ->setHelp('Validate that the mapping files are correct and in sync with the database.'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName('orm:clear-cache:result') |
48 | - ->setDescription('Clear all result cache of the various cache drivers') |
|
49 | - ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
50 | - ->setHelp(<<<EOT |
|
48 | + ->setDescription('Clear all result cache of the various cache drivers') |
|
49 | + ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
50 | + ->setHelp(<<<EOT |
|
51 | 51 | The <info>%command.name%</info> command is meant to clear the result cache of associated Entity Manager. |
52 | 52 | It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider |
53 | 53 | instance completely. |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries, |
65 | 65 | because of a limitation of its execution nature. |
66 | 66 | EOT |
67 | - ); |
|
67 | + ); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName('orm:clear-cache:metadata') |
48 | - ->setDescription('Clear all metadata cache of the various cache drivers') |
|
49 | - ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
50 | - ->setHelp(<<<EOT |
|
48 | + ->setDescription('Clear all metadata cache of the various cache drivers') |
|
49 | + ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
50 | + ->setHelp(<<<EOT |
|
51 | 51 | The <info>%command.name%</info> command is meant to clear the metadata cache of associated Entity Manager. |
52 | 52 | It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider |
53 | 53 | instance completely. |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries, |
65 | 65 | because of a limitation of its execution nature. |
66 | 66 | EOT |
67 | - ); |
|
67 | + ); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |