On Jul 16, 10:32 pm, Grapetonic <[EMAIL PROTECTED]> wrote:
<snip>
> Now how can I, on a simple magic CakePHP way, also get all tags
> related to the corresponding posts? I can probably get a foreach loop
> to go thru all the posts and do a $this->Post->find(array('Post.id'=>"LIKE 
> $post[id]") to get the corresponding tags

Well, to answer the question as posed, you use the recursive
parameter. I think You'll get a bit more milage out of the posts
rtconner has linked to though.

Why are your queries using LIKE btw? Just use  ('Post.id' =>
$post['id']) unless there is some (weird) reason not to do so.

hth,

AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to