Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to create like condition as %value, value% and value without % #811

Open
vjik opened this issue Feb 16, 2024 · 1 comment
Open
Labels
type:enhancement Enhancement

Comments

@vjik
Copy link
Member

vjik commented Feb 16, 2024

Currently, is avaliable only when manually escape value. See here:

$escape === null ? $value : ('%' . strtr($value, $escape) . '%'),

@samdark samdark added the type:enhancement Enhancement label Feb 16, 2024
@evil1
Copy link

evil1 commented Dec 24, 2024

What if we introduce $escape property in src/QueryBuilder/Condition/LikeCondition.php which by default will be equal to self::ESCAPE_BOTH constant. Also having ESCAPE_START, ESCAPE_END and ESCAPE_NONE as alternative values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants