@@ -49,7 +49,9 @@ class DocumentStore extends AbstractStore | |||
$query | |||
->filterByReference($reference) | |||
->orderBy('createdAt', 'ASC'); | |||
->orderBy('createdAt', 'ASC') | |||
->innerJoin('.orderShops', 'orderShops') | |||
; | |||
if(!is_null($type)) { | |||
$query->filterByType($type); |