find with multiple tags

Hi!

I've a image model and a tag model with HABTM.

imageA => tagA

imageB => tagA,tagB

imageC => tagA,tagB,tagC

It is easy to find all images with one tag.


$conditions => array('Tag.name' => 'tagA')

How can I find images which have 2 or more tags.

Like: "Find all images which have tagA AND tabB" = imageB,imageC

Asked by sucram, on 23/4/10

I'm wondering the exact same thing.. Anyone have a solution to this?

webtechnick - on 16/6/10

<< comments | comments >>

0 Answers

Sorry, but there are no answers yet.

Your Answer

You can use Creole Wiki Syntax to format your text.

Tagged with

Rating

0

Viewed

189 times

Last Activity

on 16/6/10