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

This reverts commit c7903392cd29c8e435763c3ffd8936bf1d9949b0.