Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addSortAggregate example
/** * {@inheritdoc} */
public
function
execute
(
)
{
return
$this
->
prepare
(
)
->
addAggregate
(
)
->
compile
(
)
->
compileAggregate
(
)
->
addGroupBy
(
)
->
addSort
(
)
->
addSortAggregate
(
)
->
finish
(
)
->
result
(
)
;
}
/** * {@inheritdoc} */
public
function
prepare
(
)
{
parent::
prepare
(
)
;
// Throw away the id fields.
$this
->sqlFields =
[
]
;