{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% set total = 0 %} {% for donor in entity.instance.donors %} {% if donor.isValidated %} {% set total = total+ donor.sum %} {% endif %} {% endfor %} {{ total }} €