protected function buildInFilter($where) { $field = $this->getField($where['column']); $values = array_values(is_array($where['values']) ? $where['values'] : [$where['values']]); // if( ends_with($where['column'], 's') ) // return $field->rAand(r\expr($values)->difference($field)->count()->lt(count($values))); if (ends_with($where['column'], 's')) { return $field->contains(function ($val) use($values) { return r\expr($values)->contains($val); }); } return r\expr($values)->contains($field); }
protected function buildInFilter($where) { $field = $this->getField($where['column']); $values = array_values($where['values']); return r\expr($values)->contains($field); }