Announcement

Collapse
No announcement yet.

=s IN Operator not working with ['whereClause']

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • =s IN Operator not working with ['whereClause']

    Hello,

    i tried to using the =* IN Operator like that:
    PHP Code:
    $result['whereClause'][] = array('name =s' => $user->get('filterVtrKunde')); 
    but while = works, =s makes the whereClause vanish from the sql.
    The IN value for example ('1','3') is messed up to '(\'1\',\'3\')').

    As workaround i use [customWhere].

  • #2
    Hi,

    You shouldn't use this operator. It's not documented to be used as you use. Use = that will work as 'IN' if a value in the right part is an array.

    Comment


    • #3
      Ok, thanks

      Comment

      Working...
      X