This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$logger = new \Doctrine\DBAL\Logging\DebugStack(); | |
$logger->enabled; | |
Shopware()->Models()->getConfiguration()->setSQLLogger($logger); | |
// Shopware Doctrine Queries | |
//get access on the customer repository | |
$query = $this->getRepository()->getListQuery($filter, $customerGroup, $sort, $limit, $offset); | |
//returns the total count of the query | |
$totalResult = $this->getManager()->getQueryCount($query); |