Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addAssignmentFilter example
$assignmentFilter
=
$request
->
get
(
'assignmentFilter', false
)
;
if
(
$emptyFilter
)
{
$this
->
addEmptyFilter
(
$query
)
;
}
if
(
$duplicateFilter
)
{
$this
->
addDuplicateFilter
(
$query
)
;
}
if
(
\
is_array
(
$assignmentFilter
)
)
{
$this
->
addAssignmentFilter
(
$query
,
$assignmentFilter
)
;
}
$ids
=
$query
->
executeQuery
(
)
->
fetchFirstColumn
(
)
;
return
new
FilteredTagIdsStruct
(
$ids
,
$this
->
getTotal
(
$query
)
)
;
}
private
function
getIdsQuery
(
Criteria
$criteria
, Context
$context
)
: QueryBuilder
{
$query
=
new
QueryBuilder
(
$this
->connection
)
;