Procházet zdrojové kódy

Fix submodel filtering.

Romain Geissler před 13 roky
rodič
revize
c7a0e9d0a8
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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);
     }