From 204b57e1157b9c416ce1226e482460830afa68f3 Mon Sep 17 00:00:00 2001 From: romanb Date: Fri, 23 Oct 2009 15:01:32 +0000 Subject: [PATCH] [2.0][DDC-57] Fixed. --- lib/Doctrine/ORM/Persisters/StandardEntityPersister.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php b/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php index 8e3a1dfd1..c07663022 100644 --- a/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php @@ -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;