I have a table in my database (MySQL) that relates a few hotels with categories. It is a part table which links the hotels and the categories table since a hotel can belong to many categories and vice versa. In the same table I have a field with additional information (an integer with dimension 1).
When generating entities with Symfony console, classes of hotels and categories contain an array of objects of the other entity is created. That is, from hotels to access the categories to which it belongs and from the categories access to all hotels that have it.
The problem is not how I access the additional field to display additional information, as no intermediate entity that view or to invoke.
If someone could help me out, I would be very grateful.
Greetings and thank you.