This is the single most frustrating thing I keep coming up against in cfwheels.
I'm doing a multilingual app, and end up dealing with a lot of models that have a nested property with and without composite keys.
It seems like there is no way of getting cfwheels to handle the object creation, form presentation, and model saving with using one object, and the only way to get it to work is to use names that don't conflict with cfwheels objects, and parse each separately and build the model and the nested properties one by one, using the key of the generated object. My problem with that is that I end up with a lot of code that I cannot reuse, so I end up writing a lot of code, and that if the save fails at a later stage, I have to delete models already created.
I've looked at
https://github.com/talltroym/cfwheels-nested-properties-demo/ and see that talltroym is building the model and adding the nested properties in the controller of the new action. I've tried this approach, but it doesn't work for a composite key model, which expects two ids in the position.
Has anyone come up with an elegant way of dealing with this?