-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Utilizing Expression::visit method instead of switch-case #230
base: 2.0.x
Are you sure you want to change the base?
Utilizing Expression::visit method instead of switch-case #230
Conversation
Hi @oleg-andreyev , Thanks for submitting this issue. I myself has stumbled across it few times. @Ocramius , what do you think about it? |
@rela589n I have no memory of this place 😵💫 |
@Ocramius , who could help us with this? Is there anyone responsible for merge requests review or any other kind of feedback (even if it is just closing the MR)? It looks like currently there are a lot of open issues and MRs back from 2020 |
@rela589n I'm no longer a maintainer, but @doctrine/common-code-maintainers could help |
@rela589n why don't you just take a look at recently reviewed PRs, to see who reviews them? 🙂 |
Link to the duplicated code: collections/src/Expr/ExpressionVisitor.php Lines 43 to 52 in b1f7c33
Can one of you please take a look at the git log and find out if that has always been the case, and if not, since when that method is no longer used? Also, can you please determine which piece of code was introduced first, and if there were any comments about the duplication in either the commit introducing the piece of code that was introduced last, or in the merge request that contains that commit? Thanks. |
While working with Criteria API, I noticed that
visit
method in Expression is never used and duplicate logic exists inExpressionVisitor::dispatch
By calling
visit
, a developer can implement his own "logic" and hook intoExpressionVisitor
My use case: I was trying to implement my own "Comparison" to work with a discriminator field but I can't add any logic to "visit" method because it's not called.
Ref.: doctrine/orm#5908