for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Happyr Doctrine Specification package.
*
* (c) Tobias Nyholm <[email protected]>
* Kacper Gunia <[email protected]>
* Peter Gribanov <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Happyr\DoctrineSpecification\Query;
use Doctrine\ORM\QueryBuilder;
use Happyr\DoctrineSpecification\Filter\Filter;
class Having implements QueryModifier
{
* @var Filter
private $filter;
* @param Filter $filter
public function __construct(Filter $filter)
$this->filter = $filter;
}
* @param QueryBuilder $qb
* @param string $dqlAlias
public function modify(QueryBuilder $qb, $dqlAlias)
$qb->having($this->filter->getFilter($qb, $dqlAlias));