Answer the question
In order to leave comments, you need to log in
How to write a dql query?
Hello!
I'm working on filters in the current project. There is such a structure.
In the view there should be a list of option.name and its possible properties:
<ul>
{% for option in options %}
<li> {{ option.name }}
<ul>
{% for value in option.productsOptionValues %}
<li>
<input type="checkbox" value="{{ value.value }}" name="filter[{{ option.name }}][{{ value.id }}]" {% if filter[option.name][value.id] is defined %} checked="checked" {% endif %} />
{{ value.value }}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question