Tag: findby

学说发现与OR条件

在Doctrine findBy()方法中是否可以使用OR语句? 我知道给定的数组被解释为case1 AND case2…像这样 $this->repos['notif']->findBy(array('status' => 1, 'status' => 2, 'status' => 3); 代表 SELECT * FROM `notif` WHERE status=1 AND status=2 AND status=3; 现在我需要一些东西来代表: SELECT * FROM `notif` WHERE status=1 OR status=2 OR status=3; 有办法得到所有案件吗?