Insert ordering across logical foreign keys
Flush ordering previously delayed an insert only for physical (constraint-backed) foreign keys. Rows related through logical foreign keys (no constraint declared in the mapping, for example an externally created schema with real constraints) are now also delayed until the referenced new row has been inserted. Statement order at flush time may therefore change; tests asserting an exact SQL order may need to be adjusted. There is no configuration switch.