1
0
mirror of synced 2025-03-23 00:13:50 +03:00

Merge pull request 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
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool

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

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

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

@ -110,7 +110,7 @@ EOT
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');