symfony/symfony — comment on commit 7e5104e09b8a600013330283daa6e82757022fcd
File: src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php line 267
By RapotOR:

Is it possible to explain this modification?
The `$originalData` doesn't contain any item to be deleted, right?

Case 1: Item is added
This case is done by unsetting `$itemsToAdd` that exist in `dataSnapshot`. Remaining data will be added.

Case 2: Item is kept
This case is managed when unsetting `$itemsToAdd` because followed by `continue 2;`.

Case 3: Item is removed
`$itemsToDelete[$originalKey] = $originalItem;` should be enough, no?