{% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %}

{% block field %}
    {%- spaceless %}
        {% set datas = getSolidoumePrelevements(object.adherent) %}
        {% for data in datas %}
            {{ data.montant}}€ ({{ data.createdAt|date('d/m/Y H:i') }})<br/>
        {% endfor %}
    {% endspaceless -%}
{% endblock %}
