-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Comparison like/notlike support #1219
base: 3.3.x
Are you sure you want to change the base?
Conversation
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-3446 We use Jira to track the state of pull requests and the versions they got |
The usage of the constants to define the array would bump the requirement on |
another thing which is necessary (but probably as a separate PR) is fixing the SQL conversion of the CONTAINS operator (it needs to escape the placeholders in the value) |
sorry, I not very understand your first suggestion about second, I think it out of scope for current pull, |
My first suggestion is to write the code this way: 'LIKE' => 'LIKE %s', // Comparison::LIKE
'NOTLIKE' => 'NOT LIKE %s', // Comparison::NOT_LIKE This way, it will still be possible to use the ORM with older versions of Doctrine Collections which does not have these constants. For CONTAINS, the fix is to escape placeholders in the value when building the SQL parameters, so that a |
There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
Conflicts: lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
pr is updated for 3.x |
Support
Comparison::LIKE
andComparison::NOTLIKE
additionally to doctrine/collections#50as alternative for #1150