This simply means that your object $EmailData is associated to the entity Attachment in the module EmailTemplate via the association EmailData_Attachment.
Check if you have an association between your $EmailData entity and the entity Attachment in the EmailTemplate module. That’s the association you need.
Without the project or a graphical representation of your domain model it will be hard to give any advice on this.
However at first glance, you might just want to change to the correct association. This is assuming you have an attachment entity in both modules with an association to the EmailData.
Perhaps you are also retrieving from the wrong entity? Which Email module do you use?
Yes I have Attachment entity in both modules but one is associated with EmailData and other is associated with EmailTemplate…
How should I retreive from correct entity. I am unable to understand properly
Yes.. I got it… Thank you