Im reposting this problem in a simpler fashion, as I was getting comments about it being too specific:
Based on the following travel model relationships, how do I select all Itineraries with at least one Stop in Region X, and still have the query return ALL the Stops for that Itinerary, even if the other Stops are in Regions other than X
I’m using Php and MySQL and Doctrine.
Region HAS MANY Country
Country HAS MANY Area
Area HAS MANY Property
Property HAS MANY Stop
Itinerary HAS MANY Stop
1 Answer