[+BUGFIX] Extbase (Persistence): Added relation table name to the match condition...
authorJochen Rau <j.rau@web.de>
Thu, 28 Jan 2010 10:34:16 +0000 (10:34 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 28 Jan 2010 10:34:16 +0000 (10:34 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapper.php

index 36e9c0b..a25acd8 100644 (file)
@@ -314,7 +314,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapper implements t3lib_Singleton {
                        $relationTableMatchFields = $columnMap->getRelationTableMatchFields();
                        if (count($relationTableMatchFields)) {
                                foreach($relationTableMatchFields as $relationTableMatchFieldName => $relationTableMatchFieldValue) {
-                                       $relationMatchCondition = $query->equals($relationTableMatchFieldName, $relationTableMatchFieldValue);
+                                       $relationMatchCondition = $query->equals($relationTableName . '.' . $relationTableMatchFieldName, $relationTableMatchFieldValue);
                                        $conditions = $query->logicalAnd($conditions, $relationMatchCondition);
                                }
                        }