public function whereInSet($column, $values, $not = false, $type = null)
{
$not = $not ? ' NOT' : '';
$values = (array) $values;
if (count($values) === 1 && $this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
$value = $this->connection->quote(current($values));
return $this->addWhere("{$not} FIND_IN_SET({$value}, {$column})", [], $type);
}
$values = implode('|', (array) $values);
return $this->addWhere("{$column}{$not} REGEXP " . $this->connection->quote("(^|,)({$values})(\$|,)"), [], $type);
}