{% for res in results %}
  {% if res is instanceof('App\\Entity\\Note') %}
    {% include '/cards/note/view.html.twig' with {'note': res} %}
  {% else %}
    {{ dump(res) }}
  {% endif %}
{% endfor %}
