{% if field.value is not empty %} {% for pitch in field.value %} {% set pitchDetailUrl = ea_url() .setController('App\\Controller\\Admin\\PitchCrudController') .setAction(constant('EasyCorp\\Bundle\\EasyAdminBundle\\Config\\Action::DETAIL')) .setEntityId(pitch.id) %} {{ pitch.name }} {% endfor %} {% else %} {{ 'noPitches'|trans({}, 'admin') }} {% endif %}