-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow has
method with numeric indexes
#2187
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
@stephandesouza taking look at this PR it can create some regression like this one #2203
What solution we could create? Any thoughts? Thanks! |
This workaround does not modify the query used by And, for now, we can't run away from |
c1b4747
to
ef1ae2d
Compare
- Fixes StyleCI
ef1ae2d
to
c2bbc5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done the review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I still think that this fix doesn't make sense at all.
_id: "12345"
is a type of string, why this library should take care of logical problems in your project?
Is defining $keyType = 'int';
not enough?
I'm just trying to understand and this type of code that we're still having issues with.
Thanks!
Codecov Report
@@ Coverage Diff @@
## master #2187 +/- ##
============================================
+ Coverage 86.91% 87.00% +0.09%
- Complexity 665 669 +4
============================================
Files 33 33
Lines 1559 1570 +11
============================================
+ Hits 1355 1366 +11
Misses 204 204
Continue to review full report at Codecov.
|
Sorry, the test was wrong after suggested review.. This is a problem with the "reverse" foreign key used on this method, and also happens with primaryKey as int Situation: Today:
Fixes:
And yes, even a "string integer" needs to be converted to int, |
Hello, I'll take a look tomorrow with a blank project to understand better this issue. Thanks! |
Fix #2182