HHH-8683 EntityEntry backport on master

Hey @gunnarmorling and @sanne
I had to make a few adjustments to port it to master, can you double check it.
(new pull request on the correct repo)
I would document the reasons for the design desicion for the linked chain rather than using a list, avoiding others from "cleaning it up" later on :)