Entries related to an entry in a list of entries
Thank you very much for your support. The code shown in the question is correct.

I have replaced the relationship field - and now it works perfect. The problem could have been that I defined the field first as a number field an then changed to a relationship field - but this is just speculation.