<table class="records_list">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
{% for detective in entities %}
<tr>
<td>
<a href="{{ path('detective_show', { 'slug': detective.slug }) }}">
{{ detective }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
Listing 34.13. Widok odpowiedzialny za prezentację kolekcji obiektów klasy Detective w postaci tabelki hiperłączy
Rozdział 34. Relacje, akcje index i show oraz widoki częściowe