-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cannot convert value of type string
to integer
#75
Comments
That's interesting. Where does the error occur in the code? A backtrace would be even better. |
I'm fairly new to js, not quite sure how to trace. Actual Exception
First Exception Stack Trace
Searching for 'z' when all 4 columns are searchable
Searching for 'z' when only 2 (string) columns are searchable
The binded value is being casted as the type of the db column it's searching through, just not sure why the datatables search function goes through ValueBinder |
Uou! In Component... private function _addCondition($column, $value, $type = 'and') { |
I think the comparison === might be overkill at this moment. You already know that it's not LIKE. |
This is a weird one, clearly I'm doing something wrong, just wondering if you can point me to the right direction.
When i let my INT columns be searchable, the search field doesn't accept string values (Err: Cannot convert value of type
string
to integer), however when I specify my INT columns with'searchable' => false
and I mean all of them, the string columns become searchable, but not the int columns obviously.My Controller
My Template
The text was updated successfully, but these errors were encountered: