I create a new Entity with an existing Id, and I want to update the related database record.
Id
Doctrine merge has been my best friend: recognizes if there
Apparently it's seems to be a bug in Doctrine which is still not resolved(Reference Github)
That is expected behavior, objects are compared by reference