HasAndBelongsToMany is relationship in Cake, but I found problem when I
want search something in HasAndBelongsToMany table.
Example:
There is three tables: contents, content_tag, tags, the relationship is
HasAndBelongsToMany between contents and tags. There is tow record in
table tags(A and B).
I find all Content use below code in Model Content:
   $this->Content->findAll();
So, if I want to search Content that tag is A, how can I do in the
Cake?
   $this->Content->find(Tag=A);
Is right? No!
Please, help me!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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