playframework/play — pull request #527 by ransombriggs (2012-07-24 22:06:53+00:00)
Title: [#1566] TransientObjectException when orphanRemoval = true and removing and adding items

Note: The indentation on my commit is kinda wonky because the indentation of the surrounding code is weird and I wanted to keep this as minimal as possible, so I followed the indentation of onSave.