Hi Matt, thanks for your response.
I removed the attribute just to get it to work and you are correct; it seems to have stopped working when I tried generated code with the new v3.1 designer. I have to re-visit it early next week.
What I meant is I would like to know which is the recommended way to get the parent entity of a lower level entity like the parent ProductEntity of a LineItemEntity. There is an attribute generated on the LineItemEntity called ProductEntity but it is null.
Thanks.