소스 검색

Fix submodel filtering.

Romain Geissler 13 년 전
부모
커밋
c7a0e9d0a8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Filter/ModelFilter.php

+ 3 - 1
Filter/ModelFilter.php

@@ -105,7 +105,9 @@ class ModelFilter extends Filter
             throw new \RunTimeException('Invalid mapping type');
         }
 
-        $alias = $queryBuilder->entityJoin($this->getParentAssociationMappings() + array($this->getAssociationMapping()));
+        $associationMappings = $this->getParentAssociationMappings();
+        $associationMappings[] = $this->getAssociationMapping();
+        $alias = $queryBuilder->entityJoin($associationMappings);
 
         return array($alias, false);
     }