Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #566 from BenMorel/toolreturntype

Added missing return statement to AbstractCommand.
  • Loading branch information...
commit d3cbdfcafa3e8dbb1d3f7029f31eb6412855c097 2 parents ef1ed58 + 2bfbe03
@guilhermeblanco guilhermeblanco authored
View
1  lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php
@@ -65,6 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return $this->executeSchemaCommand($input, $output, $tool, $metadatas);
} else {
$output->writeln('No Metadata Classes to process.');
+ return 0;
}
}
}
View
2  lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php
@@ -74,5 +74,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
$schemaTool->createSchema($metadatas);
$output->writeln('Database schema created successfully!');
}
+
+ return 0;
}
}
View
2  lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php
@@ -116,5 +116,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
}
$output->writeln('Nothing to drop. The database is empty!');
+
+ return 0;
}
}
View
2  lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php
@@ -110,7 +110,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
if (0 === count($sqls)) {
$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');
Please sign in to comment.
Something went wrong with that request. Please try again.