Commit 204b57e1 authored by romanb's avatar romanb

[2.0][DDC-57] Fixed.

parent 1642f53b
...@@ -607,12 +607,12 @@ class StandardEntityPersister ...@@ -607,12 +607,12 @@ class StandardEntityPersister
$joinTableName = $owningAssoc->getQuotedJoinTableName($this->_platform); $joinTableName = $owningAssoc->getQuotedJoinTableName($this->_platform);
$joinSql = ''; $joinSql = '';
foreach ($joinClauses as $sourceField => $joinTableField) { foreach ($joinClauses as $sourceColumn => $joinTableColumn) {
if ($joinSql != '') $joinSql .= ' AND '; if ($joinSql != '') $joinSql .= ' AND ';
$joinSql .= $this->_class->getQuotedTableName($this->_platform) . $joinSql .= $this->_class->getQuotedTableName($this->_platform) .
'.' . $this->_class->getQuotedColumnName($sourceField, $this->_platform) . ' = ' '.' . $this->_class->getQuotedColumnName($this->_class->fieldNames[$sourceColumn], $this->_platform) . ' = '
. $joinTableName . $joinTableName
. '.' . $owningAssoc->getQuotedJoinColumnName($joinTableField, $this->_platform); . '.' . $owningAssoc->getQuotedJoinColumnName($joinTableColumn, $this->_platform);
} }
$joinSql = ' INNER JOIN ' . $joinTableName . ' ON ' . $joinSql; $joinSql = ' INNER JOIN ' . $joinTableName . ' ON ' . $joinSql;
......
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