I have two models: first one is PersonAddress, which contains info about person and address and second one is Address, which contains info about some address. I connect this to models with PersonAddress hasOne Address. Now I have store PersonAddresses, which contains few PersonAddress models. I want to create new one PersonAddress.
It tryes to create PersonAddress model on the server but my Address model is not created yet.
I want that store PersonAddress while syncing models automatically sync new Address model. Is it possible? It is important, because I use save button on form which contains parent model Person and I want only create Address and PersonAddress when I press save button on Person.
P.S.: Sorry for my English. And you can ask if you don't understand something.
Ok, I think the best way to do this is as I made: