I read the posts rtconner linked to and followed AD7six's advice:
http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825050ad543/014092749592de70

The tagging feature I'm working on for my application is pretty
advanced and I think I'm over my head with this one but it's
progressing. I think I'm going to write an article for the bakery when
I'm done.

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

No reason. I had stripped the query and forgot to remove LIKE. ;)

Thanks for all the help!

//Grape

On Jul 17, 8:35 am, AD7six <[EMAIL PROTECTED]> wrote:
> 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