Bonjour à tous,
Je suis sur un projet de commerce sur symfony 4.
je cherche à afficher tout mes produits commandés par fournisseurs, jusque là pas de problème.
Code twig : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
     {% for achat in achats %} (déjà fait l'order by société ) 
 
                       <tr><th>{{ achat.produit.societe.nom }}</th></tr>
                        <tr>
                            <td class="text-center">{{ achat.produit.nom }}</td>
                            <td class="text-center">{{ achat.prix }}</td>
                            <td class="text-center">{{ achat.quantite }}</td>
                            <td class="text-center">{{ achat.produit.unite }}</td>
                            <td class="text-center">{{ achat.prix * achat.quantite }}</td>
                        </tr>
     {% endfor %}
comment puis je faire pour n'avoir qu'une seule fois le nom de la société affiché et non à chaque fois qu'une ligne d'achat est affiché.

Merci d'avance pour vos lumières.