I am using bleeding edge of the cmf, but had this problem with 1.0 and 1.1 too:
When tring to create Blocks with attr settings, i cant get it working, to not show a error anywhere:
trying to set the settings like this:
$block->setSettings(array(
'attr' => ['class' => 'test']
));
and try topersist and flush i get a:
[PHPCR\ValueFormatException]
Can not determine type of property with value "array (
'class' => 'test',
)"
if i am setting it like this:
$block->setSettings(array(
'class' => 'test'
));
i can use it in the frontend, but the dev toolbar tells me there was an error, and checking the profiler gives me:
ERROR - [cms::blockContext] block.id=0 - error while resolving options - The option "class" does not exist. Known options are: "attr", "extra_cache_keys", "template", "ttl", "use_cache"
do you have any ideas how to solve this, or is there a hidden feature somewhere?