/**
* Returns the available property values
*/
public function getPropertyValuesAction() { $propertyGroupId =
$this->
Request()->
getParam('propertyGroupId'
);
$searchValue =
$this->
Request()->
getParam('query'
);
$optionId =
$this->
Request()->
getParam('optionId'
);
$builder =
$this->
get('models'
)->
getDBALQueryBuilder();
$builder->
select([ 'filterValues.id AS id',
'filterValues.value AS value',
'filterOptions.id AS optionId',
]) ->
from('s_filter_values', 'filterValues'
) ->
innerJoin('filterValues', 's_filter_options', 'filterOptions', 'filterValues.optionID = filterOptions.id'
) ->
innerJoin('filterOptions', 's_filter_relations', 'filterRelations', 'filterOptions.id = filterRelations.optionID'
) ->
innerJoin('filterRelations', 's_filter', 'filter', 'filter.id = filterRelations.groupID AND (filter.id = :propertyGroupId)'
) ->
setParameter('propertyGroupId',
$propertyGroupId);
if (!
empty($searchValue)) {