Tuesday, May 25, 2010

Re: Find all Posts WITHOUT Tags (habtm)

What you want is a subquery. Check out the subquery section of this
page:
http://book.cakephp.org/view/74/Complex-Find-Conditions

On May 24, 7:55 am, "designv...@gmail.com" <designv...@gmail.com>
wrote:
> Hi All,
>
> I'm currently finding all Posts without Tags by querying the join
> table and getting the unique Post id's then using them in a second
> query on the Posts table to find all Posts with an id NOT in the first
> array.
>
> What I was wondering is if there was a neater/caker way of doing this?
>
> d.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: