如何像在学说2中那样编写查询
SELECT * from table where field = value1 or field = value2
我发现了类似的东西
$em->getRepository('myentitity')
->findBy(
array('field' => 'value1','field'=>'value2'), // $where
);
但我认为它是和..请建议我谢谢