Getting wrong list

0
Hi Team, While retreiving objects from association I am getting (List of MyFirstmodule.Attachment) but i should get (List of EmailTemplate.Attachment)
asked
4 answers
1

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.

answered
1

Hello Erupa,

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?

answered
0

Hi,

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

answered
0

Yes.. I got it… Thank you

answered