From 6987d11e2ad37caf5a6c2a27877d26f3a9d748a7 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 6 Sep 2007 21:07:24 +0000 Subject: [PATCH] --- lib/Doctrine/Export.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index ec49c81d4..0fcc5a698 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -1093,13 +1093,19 @@ class Doctrine_Export extends Doctrine_Connection_Module $sql = array(); 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(); $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;