-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
This is my old Form Builder code:
public function buildForm(FormBuilderInterface $builder, array $options) {
...
$builder->add(
'redeemed_at', 'genemu_jqueryselect2_choice',
array('label' =>'Voucher Redeemed At: *', 'choices' => $dealerships, 'mapped' => false)
);
...
}
If I use this, as per the examples and as I do in Symfony 2.x projects, Symfony 3.1 gives me this:
Could not load type "genemu_jqueryselect2_choice"
After I used the new style and scratched around in this bundle for the correct form class, I tried this:
public function buildForm(FormBuilderInterface $builder, array $options) {
...
$builder->add(
'redeemed_at', Select2Type::class,
array('label' =>'Voucher Redeemed At: *', 'choices' => $dealerships, 'mapped' => false)
);
...
}
Now I get this:
Warning: Missing argument 1 for Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type::__construct()
Is that the correct class?
I would really prefer to use this bundle, as I have in the past, instead of abandoning it!
PLEASE HELP!
Metadata
Metadata
Assignees
Labels
No labels