I do not know how to explain to me so that they understand me, I even think that I asked the question badly, let's see, I need to know how (I better put examples), I have a reservation table, and a food table, their relationship is much To much, when for example I render the reservations that there are in the BD it is this way to me (the numbers are only the id):
That is, I have 3 reservations with those foods, what I want is like in my controller in Symfony, I say that what I need to render is:
That is, count how many requests of each food I have. Taking into account the relationships mentioned above, how would you do it? ... Thank you very much