Continuing on the journey to install the Symfony2 CMF, I am getting the error:
[InvalidArgumentException]
The following document types provided in valid_children are invalid:
Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page
The class names provided could not be loaded.
The following lines causing this error are here in the config.yml file:
sonata_doctrine_phpcr_admin:
document_tree:
/...
Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page:
valid_children:
- all
/...
I am following the instructions from the docs here: http://symfony.com/doc/current/cmf/cookbook/creating_cms_using_cmf_and_sonata.html
below Configuration. Is this an error in the docs, or a setting that need to adjust? The docs do not explain what the valid_children parameter is controlling or the possible settings.
What are the possible options for this setting? Any further explanation of what this code is actually doing would be beneficial.