浏览代码

Merge remote-tracking branch 'fran/fix-translation-walker'

gedi 13 年之前
父节点
当前提交
fe6b1a5031
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/Gedmo/Translatable/Query/TreeWalker/TranslationWalker.php

+ 4 - 4
lib/Gedmo/Translatable/Query/TreeWalker/TranslationWalker.php

@@ -231,10 +231,10 @@ class TranslationWalker extends SqlWalker
                     $result .= $this->components[$decl->rangeVariableDeclaration->aliasIdentificationVariable];
                     $result .= $this->components[$decl->rangeVariableDeclaration->aliasIdentificationVariable];
                 }
                 }
             }
             }
-            foreach ($decl->joinVariableDeclarations as $joinDecl) {
-                if ($joinDecl->join instanceof Join) {
-                    if (isset($this->components[$joinDecl->join->aliasIdentificationVariable])) {
-                        $result .= $this->components[$joinDecl->join->aliasIdentificationVariable];
+            foreach ($decl->joins as $join) {
+                if ($join instanceof Join) {
+                    if (isset($this->components[$join->joinAssociationDeclaration->aliasIdentificationVariable])) {
+                        $result .= $this->components[$join->joinAssociationDeclaration->aliasIdentificationVariable];
                     }
                     }
                 }
                 }
             }
             }