Broken type in Admin
ElectricMaxxx opened this issue · 1 comments
ElectricMaxxx commented
When testing cmf sandbox with other RC versions i got:
Symfony\Component\Form\Exception\InvalidArgumentException:
Could not load type "choice": class does not exist.
at vendor/symfony/form/FormRegistry.php:86
at Symfony\Component\Form\FormRegistry->getType('choice')
(vendor/symfony/form/FormRegistry.php:133)
at Symfony\Component\Form\FormRegistry->resolveType(object(ChoiceFieldMaskType))
(vendor/symfony/form/FormRegistry.php:95)
at Symfony\Component\Form\FormRegistry->getType('Sonata\\DoctrinePHPCRAdminBundle\\Form\\Type\\ChoiceFieldMaskType')
(vendor/symfony/form/FormFactory.php:74)
at Symfony\Component\Form\FormFactory->createNamedBuilder('linkType', 'Sonata\\DoctrinePHPCRAdminBundle\\Form\\Type\\ChoiceFieldMaskType', null, array('sonata_field_description' => object(FieldDescription), 'choices' => array('route' => 'route', 'uri' => 'uri', 'content' => 'content'), 'map' => array('route' => array('link'), 'uri' => array('link'), 'content' => array('content', 'Symfony\\Cmf\\Bundle\\TreeBrowserBundle\\Form\\Type\\TreeSelectType')), 'placeholder' => 'auto', 'required' => false, 'property_path' => 'linkType', 'label_render' => false, 'label' => 'form.label_link_type'))
(vendor/symfony/form/FormBuilder.php:97)
at Symfony\Component\Form\FormBuilder->create('linkType', 'Sonata\\DoctrinePHPCRAdminBundle\\Form\\Type\\ChoiceFieldMaskType', array('sonata_field_description' => object(FieldDescription), 'choices' => array('route' => 'route', 'uri' => 'uri', 'content' => 'content'), 'map' => array('route' => array('link'), 'uri' => array('link'), 'content' => array('content', 'Symfony\\Cmf\\Bundle\\TreeBrowserBundle\\Form\\Type\\TreeSelectType')), 'placeholder' => 'auto', 'required' => false, 'property_path' => 'linkType', 'label_render' => false, 'label' => 'form.label_link_type'))
(vendor/symfony/form/FormBuilder.php:256)
at Symfony\Component\Form\FormBuilder->resolveChildren()
(vendor/symfony/form/FormBuilder.php:206)
at Symfony\Component\Form\FormBuilder->getForm()
(vendor/sonata-project/admin-bundle/src/Admin/AbstractAdmin.php:2840)
at Sonata\AdminBundle\Admin\AbstractAdmin->buildForm()
(vendor/sonata-project/admin-bundle/src/Admin/AbstractAdmin.php:1230)
at Sonata\AdminBundle\Admin\AbstractAdmin->getForm()
(vendor/sonata-project/admin-bundle/src/Controller/CRUDController.php:312)
at Sonata\AdminBundle\Controller\CRUDController->editAction('cms/menu/main/company-item')
(vendor/symfony/http-kernel/HttpKernel.php:149)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:190)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:37)
ElectricMaxxx commented
Oh ups, looks like we got it from SonataDoctrinePhpcrAdminBundle