This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Description
Hi
I am getting this error when calling datatables in a controller like in the example:
Notice (8): Array to string conversion [CORE\src\ORM\Table.php, line 1758]
Warning (2): strtolower() expects parameter 1 to be string, array given [CORE\src\ORM\BehaviorRegistry.php, line 215]
Notice (8): Array to string conversion [CORE\src\ORM\Table.php, line 1768]
Unknown finder method "Array"
BadMethodCallException
I used this code:
$data = $this->DataTables->find('PerformanceRecords', [
'contain' => []
]);
$this->set([
'data' => $data,
'_serialize' => array_merge($this->viewVars['_serialize'], ['data'])
]);
CakePHP is version 3.2.0
Whats wrong here? Is the plugin not comaptible with the latest version of Cakephp?
Thanks,
Frank