This commit is contained in:
parent
759c23f490
commit
3c3408a99a
@ -711,7 +711,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
|
|||||||
if (isset($definition['name'])) {
|
if (isset($definition['name'])) {
|
||||||
$sql .= 'CONSTRAINT ' . $definition['name'] . ' ';
|
$sql .= 'CONSTRAINT ' . $definition['name'] . ' ';
|
||||||
}
|
}
|
||||||
$sql .= 'FOREIGN KEY ';
|
$sql .= 'FOREIGN KEY (';
|
||||||
|
|
||||||
if ( ! isset($definition['local'])) {
|
if ( ! isset($definition['local'])) {
|
||||||
throw new Doctrine_Export_Exception('Local reference field missing from definition.');
|
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']);
|
$definition['foreign'] = array($definition['foreign']);
|
||||||
}
|
}
|
||||||
$sql .= implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['local']))
|
$sql .= implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['local']))
|
||||||
. ' REFERENCES '
|
. ') REFERENCES '
|
||||||
. $definition['foreignTable'] . '('
|
. $definition['foreignTable'] . '('
|
||||||
. implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['foreign'])) . ')';
|
. implode(', ', array_map(array($this->conn, 'quoteIdentifier'), $definition['foreign'])) . ')';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user