1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[2.0][DDC-57] Fixed.

This commit is contained in:
romanb 2009-10-23 15:01:32 +00:00
parent 1642f53bf4
commit 204b57e115

View File

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