Doctrine2 findBy relationship object triggers string conversion error
In summary you need to use the ID’s of the joining entities. Joining by entity is a feature enhancement planned for doctrine 2.1
$em->getRepository('Article')
->findBy(array('style' => $style->getId(), 'color' = $color->getId()));