On Jul 31, 2006, at 2:53 PM, [EMAIL PROTECTED] wrote:
>
> OK, I have Post and Category, they both hasAndBelongsToMany each
> other,
> how can I get all posts in one category,
$this->Category->find('id = '.$id);
> and all categories inone Post,
$this->Post->find('id = '.$id);
> that's the q
OK, I have Post and Category, they both hasAndBelongsToMany each other,
how can I get all posts in one category, and all categories inone Post,
that's the question :-).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Jul 31, 2006, at 2:37 PM, [EMAIL PROTECTED] wrote:
>
> Hi everyone, I'm trying to do something like this:
>
> findAllByFieldName(), in a relation hasAndBelongsToMany, so I don't
> have a field to look for, do you know which method should I use to do
> this?
Give us a more concrete example -
Hi everyone, I'm trying to do something like this:
findAllByFieldName(), in a relation hasAndBelongsToMany, so I don't
have a field to look for, do you know which method should I use to do
this?
Thanks in advance.
--~--~-~--~~~---~--~~
You received this message