Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

[Feature] Add custom where condition #43

Open
amirmasoud opened this issue Dec 17, 2020 · 0 comments
Open

[Feature] Add custom where condition #43

amirmasoud opened this issue Dec 17, 2020 · 0 comments
Projects

Comments

@amirmasoud
Copy link
Collaborator

Add ability to add custom where condition on the QuerySupport file on the runCondition method by overriding or augmenting currently defined conditions.

a suggested syntax could be like:

public function addOperation('_custom_operation', $query, $operation, $field, $value, $exp = 'and')
{
    // return $query->where($field, '=', $value, $exp);
}
@amirmasoud amirmasoud added this to To do in 2.x Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
2.x
To do
Development

No branches or pull requests

1 participant