private function addPerformanceJoinsToQueryBuilder(QueryBuilder $queryBuilder)
    {
        $queryBuilder
            ->select(['p', 'pa', 'pc', 'rpc', 'i'])
            ->leftJoin('p.principalImage', 'pa')
            ->leftJoin('p.priceCurrency', 'pc')
            ->leftJoin('p.reducedPriceCurrency', 'rpc')
            ->leftJoin('p.images', 'i')
            ->groupBy('p.id');
    }
private function addPerformanceJoinsToQueryBuilder(QueryBuilder $queryBuilder)
    {
        $queryBuilder
            ->select(['p', 'pa', 'pc', 'rpc', 'i'])
            ->leftJoin('p.principalImage', 'pa')
            ->leftJoin('p.priceCurrency', 'pc')
            ->leftJoin('p.reducedPriceCurrency', 'rpc')
            ->leftJoin('p.images', 'i')
            ->groupBy('p.id');
    }
private function addPerformanceJoinsToQueryBuilder ( QueryBuilder $ queryBuilder ) { $ queryBuilder -> select ( [ 'p' , 'pa' , 'pc' , 'rpc' , 'i' ] ) -> leftJoin ( 'p.principalImage' , 'pa' ) -> leftJoin ( 'p.priceCurrency' , 'pc' ) -> leftJoin ( 'p.reducedPriceCurrency' , 'rpc' ) -> leftJoin ( 'p.images' , 'i' ) -> groupBy ( 'p.id' ) ; }
Add performance joins.

This method decorates the query builder with non-changing left joins,
only for increasing the performance impact for post lazy queries.

@param QueryBuilder $queryBuilder QueryBuilder
Add performance joins .