{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if 'toMany' == field.customOptions.get('associationType') %}
{{ field.formattedValue }}
{% else %}
{% if field.customOptions.get('relatedUrl') is not null and field.formattedValue is not null %}
Attention
{% else %}
{{ field.formattedValue }}
{% endif %}
{% endif %}