This is slightly related to the but here we're trying to merge a detached entity.This worked in 5.2.12. Does not in 5.2.13+ including latest 5.3.0.
The result is