|
I am trying to update a field just after the save in a transaction. I see that the flush is not called and my assumption is since the object got updated the new value should be used when it tries to insert into the database.
But I see that in the insert the old value is being used and I see an update occuring later on.
The question is , if I update a field just after I call a save on a object, will it take in any new changes to the object before it synchonizes with the database.(it before the flush).
The reason I am doing this is I am using a ID generator on one of the fields on the parent. When I call the save the ID gets generated. I want to use the ID generated and populate it on a child object before the entire object is stored in the database.
|