Closed Coroico closed 11 years ago
IN and NOT IN operators that can be used in query hook (1.2), can't accept several strings.
It works only with a set of integers or with one string.
The following example doesn't work:
$lstCateg = "'Arts','Geography'"; $andConditions['tv.articleCategory:IN'] = $lstcateg. ':string';
See commit 8bb6ce6118 to fix this issue.
Now to use IN operator with several strings, do as follow:
$lstCateg = 'Arts,Geography'; $andConditions['tv.articleCategory:IN'] = $lstcateg. ':string';
IN and NOT IN operators that can be used in query hook (1.2), can't accept several strings.
It works only with a set of integers or with one string.
The following example doesn't work:
$lstCateg = "'Arts','Geography'"; $andConditions['tv.articleCategory:IN'] = $lstcateg. ':string';