Ok, I understand what you want to do! So you have the three models, they are related as: Category hasMany Offer Location hasMany Offer Offer belongsTo Category Offer belongsTo Location
So what is your issue? Do you have a problem with the find() statement? Enjoy, John On Jun 12, 7:44 pm, viciat <[email protected]> wrote: > I have 3 tables (travel agency): > > Categories (Mountain, Sea etc.) > Locations (London, Paris etc.) > Offers (id,category_id,location_id) > > When I select a category, I want to display the locations that are found in > the offers of that category. > > Categories and Locations are not related. > -- > View this message in > context:http://old.nabble.com/3-models-and-search-condition-tp28866040p288660... > Sent from the CakePHP mailing list archive at Nabble.com. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
