This topic contains 2 replies, has 2 voices, and was last updated by thinh2010 7 years, 3 months ago.
- Topic
Hi,
I want to set condition in datagrid such as:
Select * from entity where id IN (1,2)which 1,2 send via parameters of datagrid.
I have
12{% set gridName = 'entity-grid' %}{% set params = {id: idList|join(',')} %}print idList|join(‘,’) I got 1,2
in datagrid I have
12345678query:where:and:- p.id IN (:id)bind_parameters:-name: iddefault: nulllook like it will works, but not. I only always got 1 row each time.
I think the problem is I parse ‘,’ via datagrid.
Do you have any ideal to help me?
Thanks
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.