This commit is contained in:
parent
991d56f82c
commit
6987d11e2a
@ -1093,13 +1093,19 @@ class Doctrine_Export extends Doctrine_Connection_Module
|
|||||||
$sql = array();
|
$sql = array();
|
||||||
|
|
||||||
foreach ($table->getTemplates() as $name => $template) {
|
foreach ($table->getTemplates() as $name => $template) {
|
||||||
$table = $template->getPlugin()->getOption('pluginTable');
|
$plugin = $template->getPlugin();
|
||||||
|
|
||||||
|
if ($plugin === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$table = $plugin->getOption('pluginTable');
|
||||||
|
|
||||||
$data = $table->getExportableFormat();
|
$data = $table->getExportableFormat();
|
||||||
|
|
||||||
$query = $this->conn->export->createTableSql($data['tableName'], $data['columns'], $data['options']);
|
$query = $this->conn->export->createTableSql($data['tableName'], $data['columns'], $data['options']);
|
||||||
|
|
||||||
$sql = array_merge($sql, (array) $query);
|
$sql = array_merge($sql, (array) $query);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sql;
|
return $sql;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user