1
0
mirror of synced 2025-03-24 00:43:51 +03:00

Merge pull request #566 from BenMorel/toolreturntype

Added missing return statement to AbstractCommand.
This commit is contained in:
Guilherme Blanco 2013-02-02 20:04:30 -08:00
commit d3cbdfcafa
4 changed files with 6 additions and 1 deletions

View File

@ -65,6 +65,7 @@ abstract class AbstractCommand extends Command
return $this->executeSchemaCommand($input, $output, $tool, $metadatas); return $this->executeSchemaCommand($input, $output, $tool, $metadatas);
} else { } else {
$output->writeln('No Metadata Classes to process.'); $output->writeln('No Metadata Classes to process.');
return 0;
} }
} }
} }

View File

@ -74,5 +74,7 @@ EOT
$schemaTool->createSchema($metadatas); $schemaTool->createSchema($metadatas);
$output->writeln('Database schema created successfully!'); $output->writeln('Database schema created successfully!');
} }
return 0;
} }
} }

View File

@ -116,5 +116,7 @@ EOT
} }
$output->writeln('Nothing to drop. The database is empty!'); $output->writeln('Nothing to drop. The database is empty!');
return 0;
} }
} }

View File

@ -110,7 +110,7 @@ EOT
if (0 === count($sqls)) { if (0 === count($sqls)) {
$output->writeln('Nothing to update - your database is already in sync with the current entity metadata.'); $output->writeln('Nothing to update - your database is already in sync with the current entity metadata.');
return; return 0;
} }
$dumpSql = true === $input->getOption('dump-sql'); $dumpSql = true === $input->getOption('dump-sql');