Suppose i have an entity
ServiceOffer{id ...}
and
ServiceOfferCapabilities{serviceoffer_id , capability_id,value } .
ServiceOffer has a collection of ServiceOfferCapabilities (one to many) . All i want is display a form of ServiceOffer and let the user choose the value he wants for each capability.
Well no matter what i do this is very difficult. Because i dont know how to create formType for ServiceOfferCapabilities. I add value as text for example but i dont know how to add capability.
I can make it work but on submit there are problems , because it doesnt know which is the capability and it sets it to null. I tried hidden but it fails to create a capability object with desired id.. Any workaround?
Seems to look that you need something like data translator that (from link)