Doctrine findBy with OR condition

后端 未结 4 1654
夕颜
夕颜 2021-02-04 23:54

Is it possible to use OR statement in Doctrine findBy() method? I know that given array is interpreted as case1 AND case2... Like this

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 00:30

    You can write:

    $this->repos['notif']->findBy(array('status' => array(1, 2, 3)));
    

    and that should work too.

提交回复
热议问题