Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFlowRuleNames example
foreach
(
$associationFields
->
getElements
(
)
as
$associationField
)
{
$this
->
addSelect
(
$query
,
$associationField
)
;
}
$this
->
addFlowConditionSelect
(
$query
)
;
$query
->
setParameter
(
'ids',
Uuid::
fromHexToBytesList
(
$ids
)
,
ArrayParameterType::STRING
)
->
setParameter
(
'flowTypes',
$this
->conditionRegistry->
getFlowRuleNames
(
)
,
ArrayParameterType::STRING
)
;
return
FetchModeHelper::
groupUnique
(
$query
->
executeQuery
(
)
->
fetchAllAssociative
(
)
)
;
}
private
function
addSelect
(
QueryBuilder
$query
, AssociationField
$associationField
)
: void
{
$template
= 'EXISTS(%s) AS %s';
$propertyName
=
$associationField
->
getPropertyName
(
)
;