How do I perform a dql query to join 4 tables

0

I am using the knp paginator bundle in my system in Symfony 4, for which I need to perform queries using dql. I have 5 entities, House, Package, Day, Actividade and Image.

The houses have a direct relationship with the images. Each House has many images. With this I have no problems, but on the other hand: Each Pack has many Days Every day has many Activities Each Activity has many Images. How do I get the result of a DQL query with the packages and their respective images? Thanks in advance.

    
asked by Armando Rodríguez Acosta 07.11.2018 в 19:33
source

0 answers