Open nephilimdie opened 11 years ago
I know this issue is old, but I'm having exactly the same problem and it's breaking my head off. Any solution?
As you use ajax, you need a ModelTransformer to convert view data (hidden field value : string format) to model data (your Media entity).
Thanks, that fixed it. Just create the Transformers you need and attach them to the respective FormType fields.
Hi, thanks for your bundle. i use this with select2 but i have a problem to managment in controller the data. My relation is between one_table m2m with media table. one_tableType:
template
and one_table controller
in media controller
i know the m2m in request need a array for m2m but i don't understand why the genemu_jqueryselect2_hidden create only a hidden input. how can I manage the datas in controller?
thanks in advance SB