Hi, I try to safe a checkbox list but i get a error.
"Unexpected type of array, should attribute "staatsvorm" be jsonable?" on line 995 of /home/domain/subdomain/test2/vendor/october/rain/src/Database/Model.php
I have in my model:
public function getStaatsvormOptions()
{
return ['volsrepubliek' => 'Volsrepubliek',
'democratie' => 'Democratie',
'dictatuur' => 'Dictatuur',
'democratie' => 'Democratie',
'presidentiele_republiek' => 'Presidentiele republiek',
'parlementaire_republiek' => 'Parlementaire republiek',
'constitutionele_monarchie' => 'Constitutionele monarchie'];
}
In my controller this list the checkbox:
'staatsvorm' => [
'label' => 'Staatsvorm',
'comment' => 'Welke staatsvorm heeft het land.',
'type' => 'checkboxlist',
'span' => 'left',
'tab' => 'Algemeen',
],
I have realy no idea what i do now wrong why it not can be saved to the db....
Last updated