Re: 3 models and search condition
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 <viciuasc...@yahoo.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home