I have the following problem, I want to create an "OR" statement via the AR model, but I cant seem to find how I can input multiple values for 1 field.
I want to get back all posts that contain 'tag1' OR 'tag2', how do I do this?
Something like:
$posts = Tag::model() ->with('posts') ->findAllByAttributes( 'name' => array('tag1', 'tag2') );