Prechádzať zdrojové kódy

[translatable] query walker fix, closes #88

gediminasm 14 rokov pred
rodič
commit
04e6c44cd9

+ 3 - 1
lib/Gedmo/Translatable/Query/TreeWalker/TranslationWalker.php

@@ -204,7 +204,9 @@ class TranslationWalker extends SqlWalker
     public function walkFromClause($fromClause)
     {
         $result = parent::walkFromClause($fromClause);
-        $result .= $this->translationJoinSql[0];
+        if (count($this->translationJoinSql)) {
+            $result .= $this->translationJoinSql[0];
+        }
         return $result;
     }