Description
Roger created an issue — 12th November 2013, 11:27:10:
tran start
session.save(parentWithChildren)
parentWithChildren.RemoveChild()
parentWithChildren.AddChild()
tran commitThe child(ren) that is removed after session.save will still be saved when committing transaction. -> incorrect.
Also, the bug is worse if collection is indexed. Then the data in database will be corrupt (incorrect index) and can't be read.This only occurs if parent entity is versioned.
I'll create a pull request soon.
Roger added a comment — 12th November 2013, 12:06:41:
pull request with failing tests is here
#236
Oskar Berggren added a comment — 10th February 2014, 0:36:50:
Is this a regression?
Alexander Zaytsev added a comment — 10th February 2014, 0:43:57:
I did not check, but I don't think that it is regression.
Roger added a comment — 10th February 2014, 8:41:06:
@oskar,
I found it on 4.0 alpha, but my guess it's not a regression. Not sure though.