Skip to content

Automatically change operator to IN for array values #16

Description

@amostajo

Current, in order to use arrays, it has to manually change the operator to:

$builder->where( [
    'ID' => [
        'operator' => 'IN',
        'value' => $array_value,
    ]
] )

Change it so it array is automatically detected, and the operator is set as IN when this happens:

$builder->where( [
    'ID' => $array_value,
] )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions