Commit 3c3408a9 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 759c23f4
......@@ -711,7 +711,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
if (isset($definition['name'])) {
$sql .= 'CONSTRAINT ' . $definition['name'] . ' ';
}
$sql .= 'FOREIGN KEY ';
$sql .= 'FOREIGN KEY (';
if ( ! isset($definition['local'])) {
throw new Doctrine_Export_Exception('Local reference field missing from definition.');
......@@ -730,7 +730,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
$definition['foreign'] = array($definition['foreign']);
}
$sql .= implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['local']))
. ' REFERENCES '
. ') REFERENCES '
. $definition['foreignTable'] . '('
. implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['foreign'])) . ')';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment