Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getTaxQuery example
public
function
getTaxesAction
(
)
{
$repository
=
$this
->
get
(
'models'
)
->
getRepository
(
Tax::
class
)
;
$query
=
$repository
->
getTaxQuery
(
$this
->
Request
(
)
->
getParam
(
'filter',
[
]
)
,
$this
->
Request
(
)
->
getParam
(
'sort',
[
]
)
,
$this
->
Request
(
)
->
getParam
(
'start'
)
,
$this
->
Request
(
)
->
getParam
(
'limit'
)
)
;
// Get total result of the query
$total
=
$this
->
get
(
'models'
)
->
getQueryCount
(
$query
)
;
// Select all shop as array
$data
=
$query
->
getArrayResult
(
)
;