Hi,
I've been setting up advsearch and now trying to use the IN operator in queryHook to filter results.
I'm already using this with xPDO and it works e.g.
$query->where(array('width:IN' => array(15,16,17,20)));
For advSearch my :IN code is looking like:
$andConditions['Items.postcode:IN'] = $postcodes;
where $postcodes is an array of strings but I just get all the results back each time.
I've tried imploding the array in case
Before I deep-dive into the source, does anyone have this working?
thanks,
Julian
[ed. note: hyponym last edited this post 10 years ago.]