kievBug wrote:
Hmm, it is really hard to do it manually, IMHO it would be much easier to implement on the framework level :-(
Anton
How would that be possible, if 'Order' doesn't have a reference to its customer? It can't reach the customer. That's the cause of the issue and why it won't work.
If you want this behavior, you have to enable the navigator on the FK side, that's documented. I'm not sure whether this is possible for your model, but it is required in the situation where you want pk/fk syncing and graph persistence.
kievBug wrote:
Will it still determine the order of inserts correctly in this case?
Anton
Not necessarily as there's no reference from the FK side to the PK side, so the engine can't determine whether there's a dependency from the FK side to the PK side: the PK side is unknown to the FK side as far as the engine is concerned.
So unless your application breaks, it's best to enable the FK side navigator. Why did you remove that btw? Perhaps we can guide you to an alternative solution to the problem you tried to solve by removing the navigator