genemu / GenemuFormBundle

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
587 stars 265 forks source link

Could not load type "genemu_jqueryselect2_entity" #371

Open hugoverne opened 9 years ago

hugoverne commented 9 years ago

Hi, I'm getting this error with versions 2.2.1 and 2.2.2 of the GenemuFormBundle, when building a form:

->add('tags', 'genemu_jqueryselect2_entity',array( 
'class' => 'ASV\JobBundle\Entity\Tag', 'property' => 'name'))

When I use the Type Object directly instead of loading it from the FormRegistry by name, it works:

->add('tags', new Select2Type('entity'),array(
 'class' => 'ASV\JobBundle\Entity\Tag', 'property' => 'name'))

I already inspected the 'form.registry' service and figured out, that the type's extension obviously doesn't get loaded.

Currently I've installed Symfony in version 2.3.20 and tried with 2.3.19, but without success.

Any ideas?