for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the searcher package.
*
* (c) Daniel Ribeiro <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KGzocha\Searcher\Context\Doctrine;
/**
* Class CachedQueryBuilderSearchingContext
* @author Daniel Ribeiro <[email protected]>
* @package KGzocha\Searcher\Context\Doctrine
class CachedQueryBuilderSearchingContext extends QueryBuilderSearchingContext
{
public function getResults()
return $this
->getQueryBuilder()
->getQuery()
->useQueryCache(true)
->getResult();
}