Skip to content

Ability to have a more complex logic for determining a singular filter #36

Closed
@X-Coder264

Description

@X-Coder264

Currently the "singular filter" feature works on a per filter basis. In the old library the isSearchOne function existed on the adapter in which a more complex logic could be written, for example in the case of a composite primary key.

    protected function isSearchOne(Collection $filters): bool
    {
        if ($filters->has('userId') && $filters->has('clientId')) {
            return true;
        }

        return false;
    }

I'm not aware if/how the same thing can be achieved with this package.

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