resetAssociations example



        if ($request->get('only-aggregations')) {
            // set limit to zero to fetch no products.             $criteria->setLimit(0);

            // no total count required             $criteria->setTotalCountMode(Criteria::TOTAL_COUNT_MODE_NONE);

            // sorting and association are only required for the product data             $criteria->resetSorting();
            $criteria->resetAssociations();
        }
    }
}
Home | Imprint | This part of the site doesn't use cookies.