-
-
Notifications
You must be signed in to change notification settings - Fork 191
Comparison startsWith, endsWith #55
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
Conversation
For reference, we have contains already, which does a string match on any part of the string. |
@beberlei This seems good to go to me. |
Rebase of the Comparison startsWith, endsWith PR #55
merged in #78 |
Have you sent a PR updating the ORM to support these new operators ? |
@stof Against what code that PR need to be made ? |
@mikeSimonson the ORM code turning expression into SQL queries for usage in persistent collections: https://github.com/doctrine/doctrine2/blob/c1943624ab1260c629316bab104dc5130c060154/lib/Doctrine/ORM/Persisters/SqlExpressionVisitor.php |
Those are not compositeExpression but comparison ( the method above this one). |
hmm yeah, I forgot that the SqlExpressionVisitor actually delegates to each persister to build the comparison. |
Any ETA on the ORM support? ;) I'm not that into the ORM source. Would it be enough to just add them to the comparisonMap? |
@grizzm0 nobody made a patch for this, as far as I know. |
@Ocramius Probably deeper than my understanding of the ORM. :/ |
Trying to propose again a couple of common comparison test (related to contains test).
I also have the related PR for doctrine2 repo ready.