1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Fixed return statements in SchemaTool.

This commit is contained in:
Benjamin Morel 2013-02-03 01:31:56 +00:00
parent 71a68a5c6f
commit 2bfbe03e37
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);
} else {
$output->writeln('No Metadata Classes to process.');
return 0;
}
}
}

View File

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

View File

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

View File

@ -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');