⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠


profile picture

[CI4 / GC v2.0.1] setRelationNtoN with IN()


  • profile picture
  • Member

Posted 03 December 2020 - 08:59 AM

Hi Everyone,

Hi Johnny,


Thank you John Skoumbourdis for this bookstore!
I need to make a where_in in a "setRelationNtoN", like this for example in sql : SELECT * FROM `mytable` WHERE `id` IN (4,5) 
I've done some tests but they don't work for me:
- , array('field' => $array_data)
- , array('field IN' =>$array_data)
- , array('field IN ' => $array_data)
Is it feasible?
[French -> English translation]