CMTV
Well-known member
Hi!
In short, I have
The thing is that I want to allow admins to add
The only way I see is to force user to create
So, how to dynamically add "child" entities, but not save them in db until the "parent" entity creation finished?
In short, I have
Criterion
and Param
entity classes.The thing is that I want to allow admins to add
Param
entities during the creation of criterion (ajax adding). But insta-saving params data right to database while creating the criterion is not a good idea because the user can simply close the browser tab. Result: params are not connected to criterion because there is no criterion.The only way I see is to force user to create
Criterion
frist and only after that (after reloading the page) show "Params" tab where you can add params... But this is horribly not obvious and inconvenient for users...So, how to dynamically add "child" entities, but not save them in db until the "parent" entity creation finished?
Last edited: