Replace entity
chadyred opened this issue · 0 comments
chadyred commented
Hello,
when the default type is apply, and in a select list I click on an option type, I erase it in jQuery and replace with the type I'm choosing, and I validate, I have the message prompt to me:
Impossible to add field to this form
This error come because their is a default input create by the form mecanisme in Symfony, which map an object to input field...Is it possible to erase this default field to have nothing and made all the form with the proptotypes ?
Bacause if I remove it from the DOM, and replace with another type, the message prompt...in my mind, make a default choice = the first type must exist ! And if I don't want it...like in OneToOne associted relation.
Thanks for your work !