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
I have a problem with this module when using form collection in my application.
This works great, but if a form contains a collection, an error is thrown : Zend\Form\FormElementManager::get was unable to fetch or create an instance for my.fieldset.form.config.key
'categories.fieldset' => function ($sl)
{
$fieldset = new CategoryFieldset();
$fieldset->setHydrator(new ClassMethods());
$fieldset->setObject(new Category());
return $fieldset;
},
So for now, instead of add the ImageThumb module in the application config and inject the ImageThumbService from serviceLocator to my controllers, I just create a new instance.
Cheers,
Ceadreak
The text was updated successfully, but these errors were encountered:
Hi, thank you for your report. Could you please provide a better use case that I can test and find the bug. I cant imagine how a form fieldset chould be related to the image thumb service. Thanks.
Hi,
I have a problem with this module when using form collection in my application.
This works great, but if a form contains a collection, an error is thrown :
Zend\Form\FormElementManager::get was unable to fetch or create an instance for my.fieldset.form.config.key
An example to reproduce it :
Create a form collection and insert it in a form
Define the fieldset
Define the configuration in the form config file
So for now, instead of add the ImageThumb module in the application config and inject the ImageThumbService from serviceLocator to my controllers, I just create a new instance.
Cheers,
Ceadreak
The text was updated successfully, but these errors were encountered: