Manuel
added a comment - 07/Nov/12 2:39 PM now i find a way to rename the table
foreach ($sm->listTableForeignKeys($table->getName()) as $foreignKey)
{
$sm->dropForeignKey($foreignKey->getName(), $table->getName());
}
and then rename.
but it is right that the rows doesnt copy?
or is there a was that i can do it?
else this would be a good feature

Steve Müller
added a comment - 28/Dec/13 1:28 AM Manuel You are using the schema manager in a wrong way. What you should do to rename a table through the schema manager directly:
//...
foreach ($sm->listTables() as $table) {
$sm->renameTable($table->getName, str_replace( "_new" , "", $table->getName()));
}
... and you are done.