Doctrine Query Builder using Array

后端 未结 3 593
迷失自我
迷失自我 2021-02-10 16:51

I have an array of id:

Id_array; //array(2) { [0]=> int(9) [1]=> int(10) } 

I simply want to select the users using Id_array; I managed

3条回答
  •  一个人的身影
    2021-02-10 17:31

    On doctrine 2 is implemented by the repository now since 2.1 or 2.2

    findBy(array('id' => array(1, 2, 3, 4, 5));
    

提交回复
热议问题