Facing same problem.
and I've decided to find twice for this kind of things.
As the last find() which you had problem. I will prefer to do:
1. find out all market_id from the join table.
2. then find out all markets where id in (market ids).
On 5月20日, 上午3時31分, Dave wrote:
> Hello fellow bakers,
Ok Im not very familiar with google group tooI thought reply to
author means reply to this article..
below are the contents i wanted to post after you guys.
> Thank you guys ~~ that's woking fine! and made me having deeper
> understanding with cake's model relationship conventions..
> in fact
Group hasMany GroupPost
User hasAndBelongsToMany Group
and i wanna find all groupPosts from groups belongs to user
or maybe i can explain it this way : aUser->groups->group_posts
On Sat, May 15, 2010 at 2:47 PM, still wrote:
> Im having some difficulty on using find metho
Im having some difficulty on using find method in some complexed model
relationships( its not so complexed in fact.).
there are three models in my project : User Group and GroupPost
User HABTM Group through a join table group_memberships ( i made a
model for this table name GroupMembership).
then
The problem confucing me is that when i using Auth, every action that
i not allowed in the
Auth->allow()
will be access denied even after i loged in with a correct username
and password.
Am i missunderstanding the usage of Auth component? only the allowed
actions can be accessed?
/* app/app_cont