-
Notifications
You must be signed in to change notification settings - Fork 212
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
error on count() or sum('column') #66
Comments
updated to php 7.1.14 without any change |
Hi @jetwes , thank you for reporting this. I will look into this as soon as I get back to my office on Tuesday. |
The error seems not related to count() but to ->whereBetween |
@jetwes Could you provide the stack track from laravel.log? Thanks :) |
I have been able to replicate the problem and am now working on a fix 👍 |
Will take some time, I need to go through a few other things for this fix, won't be able to get to it today, hopefully tomorrow. |
thank you for the update and the effort on this great package |
@jetwes Please check if release 0.2.23 fixed this issue for you. Let me know how it goes. :) |
yeah - it's looking good! |
Sorry - too early ;) Same error when whereNotIn is used - so "NotIn" has to be added to the array, too... |
@jetwes Thanks! Will fix that ASAP. :) |
@jetwes Should be fixed in 0.2.24 -- Let me know :) |
great - thanks |
Issue
*Alle queries with count() or sum('columnXYZ' return a "undefined index, operator" error.
Exapmle:
$sale = SaleItem::whereIn('sku', $prod_array) ->whereBetween('created_at', [$start, $end]) ->count();
*
Environment
Laravel Version: 5.5.34
Laravel Model Caching Package Version: 0.2.21
PHP Version: 7.1.0
Stack Trace
The text was updated successfully, but these errors were encountered: