What is inserted into the DB is perfect. invoice_id on the Rate table is the actual id of the newly inserted parent vatInvoice.
but my vatInvoice instance has not updated the invoiceID attributes on its list of rates
But if I do a retrieve on the newly created vatInvoice then i get back the correct foreign key value
I believe this to be some sort of update="true" or something to that effect issue. But nothing i try works. I do not want to do a retrieve after every insert to force a refresh on foreign keys setters/getters. This was working but i cant track the change that stopped it working. Im not sure how long this has stopped working for me