Revert "HHH-3730 Compare both ids in isModified instead of an object and an id"

This reverts commit d3a3a6804fa53ccb99944c340fe233bd1e08f970.