You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I get the error The option "type" does not exist. Following is the stack trace. I can tell that this is not an issue in the form itself. The proxy types are correctly being resolved , i think. But I cant find the reason why type is not being resolved. Can anyone tell from the trace, what is wrong?
[1] Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException: The option "type" does not exist. Known options are: "action", "allow_extra_fields", "attr", "auto_initialize", "block_name", "button_add_label", "button_delete_label", "by_reference", "cascade_validation", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_provider", "csrf_token_id", "csrf_token_manager", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "inherit_data", "intention", "invalid_message", "invalid_message_parameters", "label", "label_attr", "label_format", "mapped", "max_length", "method", "pattern", "post_max_size_message", "property_path", "read_only", "required", "static_control", "translation_domain", "trim", "validation_groups", "virtual".
at n/a
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/OptionsResolver/OptionsResolver.php line 738
at Symfony\Component\OptionsResolver\OptionsResolver->resolve(array('type' => 'sylius_cart_item'))
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php line 109
at Symfony\Component\Form\ResolvedFormType->createBuilder(object(FormFactory), 'items', array('type' => 'sylius_cart_item'))
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php line 82
at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->createBuilder(object(FormFactory), 'items', array('type' => 'sylius_cart_item'))
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 87
at Symfony\Component\Form\FormFactory->createNamedBuilder('items', 'collection', null, array('type' => 'sylius_cart_item'))
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 106
at Symfony\Component\Form\FormBuilder->create('items', 'collection', array('type' => 'sylius_cart_item'))
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 268
at Symfony\Component\Form\FormBuilder->resolveChildren()
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 216
at Symfony\Component\Form\FormBuilder->getForm()
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 39
at Symfony\Component\Form\FormFactory->create('sylius_cart', object(Order), array())
in /Users/broncha/apache/mall/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 248
at Symfony\Bundle\FrameworkBundle\Controller\Controller->createForm('sylius_cart', object(Order))
in /Users/broncha/apache/mall/src/Broncha/Bundle/StoreBundle/Controller/CartController.php line 28
at Broncha\Bundle\StoreBundle\Controller\CartController->summaryAction()
in line
at call_user_func_array(array(object(CartController), 'summaryAction'), array())
in /Users/broncha/apache/mall/app/bootstrap.php.cache line 3008
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
in /Users/broncha/apache/mall/app/bootstrap.php.cache line 2970
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
in /Users/broncha/apache/mall/app/bootstrap.php.cache line 3119
at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
in /Users/broncha/apache/mall/app/bootstrap.php.cache line 2364
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
in /Users/broncha/apache/mall/web/app_dev.php line 28
The text was updated successfully, but these errors were encountered:
In Symfony 4.3+ for collection option type was changed to entry_type and value must be fully-qualified domain name (FQDN), e.g. \Your\Module\Form\Type\SyliusCartItemType::class
Hi I am using
SyliusCartBundle
in one of my project. This is a form from the bundle:But I get the error
The option "type" does not exist
. Following is the stack trace. I can tell that this is not an issue in the form itself. The proxy types are correctly being resolved , i think. But I cant find the reason whytype
is not being resolved. Can anyone tell from the trace, what is wrong?The text was updated successfully, but these errors were encountered: