makerlabs/PagerBundle

Pager::getResults - Twig optimization

Closed this issue · 0 comments

Using the following code for empty result set:

{% for value in pager.getResults %}
<!-- content ->
{%else%}
<!-- content ->
{% endfor %}

will call unnecessary query to fetch the result data.