diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index b67e09b6e..46e387fec 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -822,7 +822,7 @@ class Doctrine_Export extends Doctrine_Connection_Module try { $data = $table->getExportableFormat(); - $this->conn->export->createTable($data[0], $data[1], $data[2]); + $this->conn->export->createTable($data['tableName'], $data['columns'], $data['options']); } catch(Doctrine_Connection_Exception $e) { // we only want to silence table already exists errors if($e->getPortableCode() !== Doctrine::ERR_ALREADY_EXISTS) { diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 5b6d79c2a..cccfa9c4f 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -366,7 +366,9 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable $options['primary'] = $primary; - return array($this->getOption('tableName'), $columns, array_merge($this->getOptions(), $options)); + return array('tableName' => $this->getOption('tableName'), + 'columns' => $columns, + 'options' => array_merge($this->getOptions(), $options)); } /** * exportConstraints