Hi all,

I have the following problem:

I have two models Vehicles and City. I want to FindAll Vehicles where
City.Province_id = 3. The problem is, Vehicle is related to city via
another table, "businesses" like so:

Vehicle $belongsTo Business $belongsTo City $belongsTo Province

or in the other direction:

Province $hasMany City $hasMany Business $hasMany Vehicle

How can I perform the query on Vehicles without having to write a
custom query? Is it even possible?

Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to