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

Error in controller #18

@LDSign

Description

@LDSign

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions