Open wash34000 opened 3 years ago
For now i've change line 300 :
$columnType = ($columnDesc['type'] === 'text') ? 'string' : $columnDesc['type'];
Instead, add this before line 311:
if ($columnType === 'text') { // convert to PHP type
$columnType = 'string';
}
Please test it and if it works, do a pull request. Thanks!
Hello,
I've a problem with one table column that is a text type in my model. When i try to search i've an error on line 311 in DataTablesComponent.php, PHP cannot set type "text" :
settype(): Invalid type [ROOT/vendor/ypnos-web/cakephp-datatables/src/Controller/Component/DataTablesComponent.php, line 311]
Can i force my text field to string without modify your controller file ?
Kind regards