Symfony2.3 raw sql query with IN Clause

后端 未结 3 1417
忘了有多久
忘了有多久 2021-01-14 12:43

I was trying to a run raw sql query with doctrine entitymanager for IN clause as shown below.

    $idSArray  = Array ( [0] => 1 [1] => 2 )

    $stm         


        
3条回答
  •  失恋的感觉
    2021-01-14 13:14

    You have to let your array as an array, don't implode it.

    $params = array(
       'ids'  => $idSArray
    );
    

提交回复
热议问题