Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getConfiguratorListIdsQuery example
return
;
}
$productId
=
$this
->
Request
(
)
->
getParam
(
'articleId'
)
;
$product
=
$this
->
get
(
'models'
)
->
find
(
Product::
class
,
$productId
)
;
$tax
=
[
'tax' =>
(float)
$product
->
getTax
(
)
->
getTax
(
)
,
]
;
$idQuery
=
$this
->
getRepository
(
)
->
getConfiguratorListIdsQuery
(
$productId
,
$this
->
Request
(
)
->
getParam
(
'filter'
)
,
$this
->
Request
(
)
->
getParam
(
'sort'
)
,
$this
->
Request
(
)
->
getParam
(
'start'
)
,
$this
->
Request
(
)
->
getParam
(
'limit', 20
)
)
;
$total
=
$this
->
get
(
'models'
)
->
getQueryCount
(
$idQuery
)
;
$ids
=
$idQuery
->
getArrayResult
(
)
;
foreach
(
$ids
as
$key
=>
$id
)
{