Méthode | Description | |
---|---|---|
__construct ( WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface $repository ) | DataSetQueryBuilder constructor. | |
getQueryBuilder ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : Doctrine\ORM\QueryBuilder | Prepares and returns Doctrine's QueryBuilder |
Méthode | Description | |
---|---|---|
addColumnConditionToQueryBuilder ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnInterface $column, WellCommerce\Component\DataSet\Conditions\ConditionInterface $condition ) | Adds additional where/having clauses for given dataset's column | |
getConditions ( WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : WellCommerce\Component\DataSet\Conditions\ConditionsCollection | Returns the query conditions | |
getOrderByExpression ( WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) : Doctrine\ORM\Query\Expr\OrderBy | Prepares an ordering expression | |
setColumnConditions ( Doctrine\ORM\QueryBuilder $queryBuilder, WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) | Adds additional conditions to query |
public __construct ( WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface $repository ) | ||
$repository | WellCommerce\Component\DataSet\Repository\DataSetAwareRepositoryInterface |
public getQueryBuilder ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request ) : Doctrine\ORM\QueryBuilder | ||
$columns | WellCommerce\Component\DataSet\Column\ColumnCollection | |
$request | WellCommerce\Component\DataSet\Request\DataSetRequestInterface | |
Résultat | Doctrine\ORM\QueryBuilder |